Author: vyemialyanchyk
Date: 2009-04-07 08:57:36 -0400 (Tue, 07 Apr 2009)
New Revision: 14560
Modified:
trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/HibernateJDTuiTestPlugin.java
Log:
JBIDE-4137
Modified:
trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/HibernateJDTuiTestPlugin.java
===================================================================
---
trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/HibernateJDTuiTestPlugin.java 2009-04-07
12:51:32 UTC (rev 14559)
+++
trunk/hibernatetools/tests/org.hibernate.eclipse.jdt.ui.test/src/org/hibernate/eclipse/jdt/ui/test/HibernateJDTuiTestPlugin.java 2009-04-07
12:57:36 UTC (rev 14560)
@@ -35,7 +35,7 @@
*/
public void start(BundleContext context) throws Exception {
super.start(context);
- plugin = this;
+ setPlugin(this);
}
/*
@@ -43,7 +43,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);
}
@@ -55,6 +55,10 @@
public static HibernateJDTuiTestPlugin getDefault() {
return plugin;
}
+
+ private static void setPlugin(HibernateJDTuiTestPlugin plugin) {
+ HibernateJDTuiTestPlugin.plugin = plugin;
+ }
public File getFileInPlugin(IPath path) throws CoreException {
try {
Show replies by date