Author: vyemialyanchyk
Date: 2009-04-07 08:50:28 -0400 (Tue, 07 Apr 2009)
New Revision: 14557
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.help/src/java/org/hibernate/eclipse/help/HelpPlugin.java
Log:
JBIDE-4137
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.help/src/java/org/hibernate/eclipse/help/HelpPlugin.java
===================================================================
---
trunk/hibernatetools/plugins/org.hibernate.eclipse.help/src/java/org/hibernate/eclipse/help/HelpPlugin.java 2009-04-07
12:50:12 UTC (rev 14556)
+++
trunk/hibernatetools/plugins/org.hibernate.eclipse.help/src/java/org/hibernate/eclipse/help/HelpPlugin.java 2009-04-07
12:50:28 UTC (rev 14557)
@@ -43,7 +43,7 @@
*/
public HelpPlugin() {
super();
- plugin = this;
+ setPlugin(this);
}
/**
@@ -58,7 +58,7 @@
*/
public void stop(BundleContext context) throws Exception {
super.stop(context);
- plugin = null;
+ setPlugin(null);
resourceBundle = null;
}
@@ -69,6 +69,10 @@
return plugin;
}
+ private static void setPlugin(HelpPlugin plugin) {
+ HelpPlugin.plugin = plugin;
+ }
+
/**
* Returns the string from the plugin's resource bundle,
* or 'key' if not found.