Author: vyemialyanchyk
Date: 2009-04-07 08:59:24 -0400 (Tue, 07 Apr 2009)
New Revision: 14563
Modified:
trunk/seam/plugins/org.jboss.ide.seam.gen/src/org/jboss/ide/seam/gen/SeamGenPlugin.java
Log:
JBIDE-4137
Modified:
trunk/seam/plugins/org.jboss.ide.seam.gen/src/org/jboss/ide/seam/gen/SeamGenPlugin.java
===================================================================
---
trunk/seam/plugins/org.jboss.ide.seam.gen/src/org/jboss/ide/seam/gen/SeamGenPlugin.java 2009-04-07
12:59:06 UTC (rev 14562)
+++
trunk/seam/plugins/org.jboss.ide.seam.gen/src/org/jboss/ide/seam/gen/SeamGenPlugin.java 2009-04-07
12:59:24 UTC (rev 14563)
@@ -27,7 +27,7 @@
public class SeamGenPlugin extends AbstractUIPlugin {
// The plug-in ID
- public static final String PLUGIN_ID = "org.jboss.ide.seam.gen";
+ public static final String PLUGIN_ID = "org.jboss.ide.seam.gen";
//$NON-NLS-1$
// The shared instance
private static SeamGenPlugin plugin;
@@ -36,7 +36,7 @@
* The constructor
*/
public SeamGenPlugin() {
- plugin = this;
+ setPlugin(this);
}
/*
@@ -51,7 +51,7 @@
private void initSeamGen() {
ILaunchConfiguration config=null;
try {
- config = findLaunchConfig("seamgen");
+ config = findLaunchConfig("seamgen"); //$NON-NLS-1$
} catch (CoreException e1) {
logError("Exception occured during search in Launch Configuration list.",
e1);
}
@@ -71,7 +71,7 @@
}
}
- private static final String JBOSS_AS_HOME = "../../../../jboss-eap/jboss-as";
+ private static final String JBOSS_AS_HOME = "../../../../jboss-eap/jboss-as";
//$NON-NLS-1$
static public String assumeJBossASHome() {
String pluginLocation=null;
@@ -86,7 +86,7 @@
if(p.toFile().exists()) {
return p.toOSString();
} else {
- return "";
+ return ""; //$NON-NLS-1$
}
}
@@ -113,7 +113,7 @@
* @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
*/
public void stop(BundleContext context) throws Exception {
- plugin = null;
+ setPlugin(null);
super.stop(context);
}
@@ -126,6 +126,10 @@
return plugin;
}
+ private static void setPlugin(SeamGenPlugin plugin) {
+ SeamGenPlugin.plugin = plugin;
+ }
+
public static void log(IStatus status) {
getDefault().getLog().log(status);
Show replies by date