Author: vyemialyanchyk
Date: 2009-04-07 08:58:38 -0400 (Tue, 07 Apr 2009)
New Revision: 14561
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.mapper/src/org/hibernate/eclipse/mapper/MapperPlugin.java
Log:
JBIDE-4137
Modified:
trunk/hibernatetools/plugins/org.hibernate.eclipse.mapper/src/org/hibernate/eclipse/mapper/MapperPlugin.java
===================================================================
---
trunk/hibernatetools/plugins/org.hibernate.eclipse.mapper/src/org/hibernate/eclipse/mapper/MapperPlugin.java 2009-04-07
12:57:36 UTC (rev 14560)
+++
trunk/hibernatetools/plugins/org.hibernate.eclipse.mapper/src/org/hibernate/eclipse/mapper/MapperPlugin.java 2009-04-07
12:58:38 UTC (rev 14561)
@@ -47,7 +47,7 @@
*/
public MapperPlugin() {
super();
- plugin = this;
+ setPlugin(this);
}
/**
@@ -63,7 +63,7 @@
*/
public void stop(BundleContext context) throws Exception {
super.stop(context);
- plugin = null;
+ setPlugin(null);
resourceBundle = null;
}
@@ -73,6 +73,10 @@
public static MapperPlugin getDefault() {
return plugin;
}
+
+ private static void setPlugin(MapperPlugin plugin) {
+ MapperPlugin.plugin = plugin;
+ }
public EclipseLogger getLogger() {
return logger;
Show replies by date