Started with PHP/HTML Formatter menu => doesn't work right now
[phpeclipse.git] / archive / net.sourceforge.phpeclipse.sql / src / net / sourceforge / phpdt / sql / view / LogProxy.java
1 package net.sourceforge.phpdt.sql.view;
2
3 public class LogProxy implements LogConstants {
4         private static LogProxy instance = null;
5         private SQLLogView log = null;
6         private LogProxy() {
7         }
8         public synchronized static LogProxy getInstance() {
9                 if (instance == null) {
10                         instance = new LogProxy();
11                 }
12                 return instance;
13         }
14         public void addText(int type, String text) {
15                 log = SQLLogView.getInstance();
16                 if (log != null) {
17                         log.addText(type, text);
18                 }
19         }
20 }