Author: yzhishko
Date: 2010-01-31 13:41:52 -0500 (Sun, 31 Jan 2010)
New Revision: 20037
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/VpePlugin.java
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeEditorPart.java
Log:
Modified: trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/VpePlugin.java
===================================================================
---
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/VpePlugin.java 2010-01-31
16:54:30 UTC (rev 20036)
+++
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/VpePlugin.java 2010-01-31
18:41:52 UTC (rev 20037)
@@ -18,6 +18,7 @@
import org.jboss.tools.common.log.BaseUIPlugin;
import org.jboss.tools.common.log.IPluginLog;
import org.jboss.tools.common.reporting.ProblemReportingHelper;
+import org.jboss.tools.vpe.editor.util.ProjectNaturesChecker;
import org.jboss.tools.vpe.xulrunner.browser.XulRunnerBrowser;
import org.osgi.framework.Bundle;
import org.osgi.framework.BundleContext;
@@ -53,6 +54,11 @@
* This method is called when the plug-in is stopped
*/
public void stop(BundleContext context) throws Exception {
+ ProjectNaturesChecker naturesChecker = ProjectNaturesChecker.getInstance();
+ if (naturesChecker != null) {
+ naturesChecker.dispose();
+ naturesChecker = null;
+ }
super.stop(context);
}
Modified:
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeEditorPart.java
===================================================================
---
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeEditorPart.java 2010-01-31
16:54:30 UTC (rev 20036)
+++
trunk/vpe/plugins/org.jboss.tools.vpe/src/org/jboss/tools/vpe/editor/VpeEditorPart.java 2010-01-31
18:41:52 UTC (rev 20037)
@@ -913,10 +913,6 @@
@Override
public void dispose() {
deactivateServices();
- if (naturesChecker != null) {
- naturesChecker.dispose();
- naturesChecker = null;
- }
sourceActivation = null;
sourceMaxmin = null;
visualActivation = null;
Show replies by date