Author: vyemialyanchyk
Date: 2009-04-07 09:00:58 -0400 (Tue, 07 Apr 2009)
New Revision: 14566
Modified:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/VisualEditorPlugin.java
Log:
JBIDE-4137
Modified:
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/VisualEditorPlugin.java
===================================================================
---
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/VisualEditorPlugin.java 2009-04-07
13:00:21 UTC (rev 14565)
+++
trunk/hibernatetools/plugins/org.jboss.tools.hibernate.ui.veditor/src/org/jboss/tools/hibernate/ui/veditor/VisualEditorPlugin.java 2009-04-07
13:00:58 UTC (rev 14566)
@@ -28,7 +28,7 @@
private static VisualEditorPlugin plugin;
public VisualEditorPlugin() {
- plugin = this;
+ setPlugin(this);
}
public void start(BundleContext context) throws Exception {
@@ -37,13 +37,17 @@
public void stop(BundleContext context) throws Exception {
super.stop(context);
- plugin = null;
+ setPlugin(null);
}
public static VisualEditorPlugin getDefault() {
return plugin;
}
+ private static void setPlugin(VisualEditorPlugin plugin) {
+ VisualEditorPlugin.plugin = plugin;
+ }
+
public static ImageDescriptor getImageDescriptor(String path) {
return AbstractUIPlugin.imageDescriptorFromPlugin(PLUGIN_ID, path);
}
Show replies by date