Author: svasilyev
Date: 2007-10-12 07:50:17 -0400 (Fri, 12 Oct 2007)
New Revision: 4148
Modified:
branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/plugin.xml
branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/VpePlugin.java
Log:
http://jira.jboss.org/jira/browse/JBIDE-1070
Modified: branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/plugin.xml
===================================================================
--- branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/plugin.xml 2007-10-12
11:34:45 UTC (rev 4147)
+++ branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/plugin.xml 2007-10-12
11:50:17 UTC (rev 4148)
@@ -3,6 +3,8 @@
<plugin>
<extension-point id="templates" name="Path to xml file with
templates definitionj" schema="schema/templates.exsd"/>
+ <extension point="org.eclipse.ui.startup" />
+
<extension point="org.jboss.tools.common.model.meta">
<meta path="meta/vpe.meta"/>
</extension>
Modified:
branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/VpePlugin.java
===================================================================
---
branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/VpePlugin.java 2007-10-12
11:34:45 UTC (rev 4147)
+++
branches/jbosstools_xulrunner/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/VpePlugin.java 2007-10-12
11:50:17 UTC (rev 4148)
@@ -15,16 +15,21 @@
import org.eclipse.core.runtime.FileLocator;
import org.eclipse.core.runtime.Platform;
+import org.eclipse.swt.widgets.Shell;
+import org.eclipse.ui.IStartup;
+import org.eclipse.ui.PlatformUI;
import org.jboss.tools.common.log.BaseUIPlugin;
import org.jboss.tools.common.log.IPluginLog;
import org.jboss.tools.common.reporting.ProblemReportingHelper;
+import org.jboss.tools.vpe.xulrunner.XulRunnerException;
+import org.jboss.tools.vpe.xulrunner.browser.XulRunnerBrowser;
import org.osgi.framework.Bundle;
import org.osgi.framework.BundleContext;
/**
* The main plugin class to be used in the desktop.
*/
-public class VpePlugin extends BaseUIPlugin {
+public class VpePlugin extends BaseUIPlugin implements IStartup {
public final static String PLUGIN_ID = "org.jboss.tools.vpe";
//The shared instance.
private static VpePlugin plugin;
@@ -123,4 +128,16 @@
public static IPluginLog getPluginLog() {
return getDefault();
}
+
+ @Override
+ public void earlyStartup() {
+ /* init xulrunner path for */
+ try {
+ XulRunnerBrowser.getXulRunnerPath();
+ } catch (Throwable t) {
+ // Ignore this. Will catch it when use Visual Editor
+ }
+ }
+
+
}