Update of /cvsroot/e-p-i-c/org.epic.debug/src/org/epic/debug
In directory sc8-pr-cvs5.sourceforge.net:/tmp/cvs-serv1602/src/org/epic/debug
Modified Files:
PerlDebugPlugin.java
Log Message:
Changed constructor to OSGi-compatible (amends previous commit).
Index: PerlDebugPlugin.java
===================================================================
RCS file: /cvsroot/e-p-i-c/org.epic.debug/src/org/epic/debug/PerlDebugPlugin.java,v
retrieving revision 1.28
retrieving revision 1.29
diff -u -d -r1.28 -r1.29
--- PerlDebugPlugin.java 23 Aug 2006 21:29:50 -0000 1.28
+++ PerlDebugPlugin.java 23 Aug 2006 21:52:15 -0000 1.29
@@ -24,6 +24,7 @@
import org.epic.core.util.PerlExecutor;
import org.epic.debug.ui.PerlImageDescriptorRegistry;
import org.epic.debug.util.LogWriter;
+import org.osgi.framework.BundleContext;
/**
* The main plugin class to be used in the desktop.
@@ -68,28 +69,6 @@
} catch (MissingResourceException x) {
resourceBundle = null;
}
-
- mBreakPointmanager = new PerlBreakpointManager(DebugPlugin.getDefault());
- mDebugger = new ArrayList();
-
- getLog().addLogListener(
- new LogWriter(new File(getStateLocation() + File.separator
- + ".log"), mLogLevel));
- getLog().addLogListener(new LogWriter(System.err, mScreenLogLevel));
- // log(
- // new Status(
- // IStatus.INFO,
- // getUniqueIdentifier(),
- // 150,
- // "Plugin Started",
- // null));
- // log(
- // new Status(
- // IStatus.WARNING,
- // getUniqueIdentifier(),
- // 150,
- // "Plugin Started",
- // null));
}
public void logOK(String fText, Exception fException) {
@@ -467,4 +446,17 @@
e));
}
}
+
+ public void start(BundleContext context) throws Exception
+ {
+ super.start(context);
+
+ mBreakPointmanager = new PerlBreakpointManager(DebugPlugin.getDefault());
+ mDebugger = new ArrayList();
+
+ getLog().addLogListener(
+ new LogWriter(new File(getStateLocation() + File.separator
+ + ".log"), mLogLevel));
+ getLog().addLogListener(new LogWriter(System.err, mScreenLogLevel));
+ }
}
\ No newline at end of file
|