Author: svasilyev
Date: 2008-02-15 06:07:05 -0500 (Fri, 15 Feb 2008)
New Revision: 6333
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/VpePlugin.java
Log:
Some code adjustment and improvement
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 2008-02-15
11:07:01 UTC (rev 6332)
+++
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/VpePlugin.java 2008-02-15
11:07:05 UTC (rev 6333)
@@ -15,13 +15,10 @@
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;
@@ -30,7 +27,10 @@
* 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"; // $NON-NLS-1$
+ public static final String PLUGIN_ID = "org.jboss.tools.vpe"; //$NON-NLS-1$
+
+ public static final String EXTESION_POINT_VPE_TEMPLATES =
"org.jboss.tools.vpe.templates"; //$NON-NLS-1$
+
//The shared instance.
private static VpePlugin plugin;
//Resource bundle.
@@ -99,8 +99,8 @@
/* init xulrunner path for */
try {
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);
+ if ("true".equals(Platform.getDebugOption(PLUGIN_ID +
"/debug/earlyStartup"))) { //$NON-NLS-1$ //$NON-NLS-2$
+ logInfo("earlyStartup: XULRunner path is: " + xulRunnerPath);
//$NON-NLS-1$
}
} catch (Throwable t) {
// Ignore this. Will catch it when use Visual Editor
Show replies by date