Author: scabanovich
Date: 2011-03-10 15:19:19 -0500 (Thu, 10 Mar 2011)
New Revision: 29666
Modified:
trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/reporting/ProblemBuffer.java
Log:
JBIDE-8549
https://issues.jboss.org/browse/JBIDE-8549
Modified:
trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/reporting/ProblemBuffer.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/reporting/ProblemBuffer.java 2011-03-10
20:11:36 UTC (rev 29665)
+++
trunk/common/plugins/org.jboss.tools.common/src/org/jboss/tools/common/reporting/ProblemBuffer.java 2011-03-10
20:19:19 UTC (rev 29666)
@@ -12,12 +12,12 @@
import java.io.File;
-import org.eclipse.core.internal.runtime.PlatformLogWriter;
-import org.eclipse.core.runtime.ILogListener;
-import org.eclipse.core.runtime.IStatus;
+//import org.eclipse.core.internal.runtime.PlatformLogWriter;
+//import org.eclipse.core.runtime.ILogListener;
+//import org.eclipse.core.runtime.IStatus;
import org.eclipse.core.runtime.Platform;
-import org.eclipse.core.runtime.adaptor.EclipseLog;
-import org.eclipse.osgi.framework.log.FrameworkLog;
+//import org.eclipse.core.runtime.adaptor.EclipseLog;
+//import org.eclipse.osgi.framework.log.FrameworkLog;
import org.jboss.tools.common.util.FileUtil;
import org.osgi.framework.Bundle;
@@ -29,14 +29,15 @@
ProblemBuffer() {}
+ //TODO remove dead commented code.
/**
* IProblemReporter implementation.
* @param status
*/
- public void writeToBuffer(IStatus status) {
- getEclipseLog();
- writer.logging(status, "org.jboss.tools.common"); //$NON-NLS-1$
- }
+// public void writeToBuffer(IStatus status) {
+// getEclipseLog();
+// writer.logging(status, "org.jboss.tools.common"); //$NON-NLS-1$
+// }
/**
* Returns number of entries in .log file.
@@ -102,16 +103,16 @@
Submit.getInstance().submit(reportText, cleanBuffer);
}
- FrameworkLog log;
- ILogListener writer;
+// FrameworkLog log;
+// ILogListener writer;
- private FrameworkLog getEclipseLog() {
- if(log == null) {
- log = new EclipseLog(getLogFile());
- writer = new PlatformLogWriter(log);
- }
- return log;
- }
+// private FrameworkLog getEclipseLog() {
+// if(log == null) {
+// log = new EclipseLog(getLogFile());
+// writer = new PlatformLogWriter(log);
+// }
+// return log;
+// }
private File getLogFile() {
Bundle b = Platform.getBundle("org.jboss.tools.common"); //$NON-NLS-1$