Author: svasilyev
Date: 2007-10-19 08:00:24 -0400 (Fri, 19 Oct 2007)
New Revision: 4378
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/VpePlugin.java
Log:
Possibility of debugging of earlyStartup() method was added
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/VpePlugin.java
===================================================================
---
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/VpePlugin.java 2007-10-19
10:58:12 UTC (rev 4377)
+++
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/VpePlugin.java 2007-10-19
12:00:24 UTC (rev 4378)
@@ -30,7 +30,7 @@
* The main plugin class to be used in the desktop.
*/
public class VpePlugin extends BaseUIPlugin implements IStartup {
- public final static String PLUGIN_ID = "org.jboss.tools.vpe";
+ public final static String PLUGIN_ID = "org.jboss.tools.vpe"; // $NON-NLS-1$
//The shared instance.
private static VpePlugin plugin;
//Resource bundle.
@@ -98,7 +98,10 @@
public void earlyStartup() {
/* init xulrunner path for */
try {
- XulRunnerBrowser.getXulRunnerPath();
+ String xulRunnerPath = XulRunnerBrowser.getXulRunnerPath();
+ if ("true".equals(Platform.getDebugOption(PLUGIN_ID +
"/debug/earlyStartup"))) { // $NON-NLS-1$ // $NON-NLS-1$
+ logInfo("earlyStartup: XULRunner path is: " + xulRunnerPath);
+ }
} catch (Throwable t) {
// Ignore this. Will catch it when use Visual Editor
}
Show replies by date