Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornitind2005-05-11 01:56:46 +0000
committernitind2005-05-11 01:56:46 +0000
commit5ed406ddd3b185935d9f7cf80f96c71850eddb4b (patch)
treed2b24ff367dd56b00196f05ca10a13187f6a4a40
parente1d363664aa4fd6ecfb57952159de360a4a015ae (diff)
downloadwebtools.sourceediting-5ed406ddd3b185935d9f7cf80f96c71850eddb4b.tar.gz
webtools.sourceediting-5ed406ddd3b185935d9f7cf80f96c71850eddb4b.tar.xz
webtools.sourceediting-5ed406ddd3b185935d9f7cf80f96c71850eddb4b.zip
start and stop task tag scanning from UI plugin
-rw-r--r--bundles/org.eclipse.wst.sse.core/src/org/eclipse/wst/sse/core/internal/SSECorePlugin.java10
-rw-r--r--bundles/org.eclipse.wst.sse.ui/src/org/eclipse/wst/sse/ui/internal/SSEUIPlugin.java20
2 files changed, 20 insertions, 10 deletions
diff --git a/bundles/org.eclipse.wst.sse.core/src/org/eclipse/wst/sse/core/internal/SSECorePlugin.java b/bundles/org.eclipse.wst.sse.core/src/org/eclipse/wst/sse/core/internal/SSECorePlugin.java
index f04d6ab6e9..3871288322 100644
--- a/bundles/org.eclipse.wst.sse.core/src/org/eclipse/wst/sse/core/internal/SSECorePlugin.java
+++ b/bundles/org.eclipse.wst.sse.core/src/org/eclipse/wst/sse/core/internal/SSECorePlugin.java
@@ -19,7 +19,6 @@ import org.eclipse.wst.sse.core.internal.modelhandler.ModelHandlerRegistry;
import org.eclipse.wst.sse.core.internal.preferences.CommonModelPreferenceNames;
import org.eclipse.wst.sse.core.internal.provisional.IModelManager;
import org.eclipse.wst.sse.core.internal.provisional.StructuredModelManager;
-import org.eclipse.wst.sse.core.internal.tasks.TaskScanningScheduler;
import org.osgi.framework.BundleContext;
@@ -85,7 +84,6 @@ public class SSECorePlugin extends Plugin {
*/
public void stop(BundleContext context) throws Exception {
savePluginPreferences();
- TaskScanningScheduler.shutdown();
FileBufferModelManager.shutdown();
super.stop(context);
@@ -99,14 +97,6 @@ public class SSECorePlugin extends Plugin {
public void start(BundleContext context) throws Exception {
super.start(context);
- /**
- * If the user starts the workbench with -Dorg.eclipse.wst.sse.core.taskscanner=off, the
- * scanner should be disabled
- */
- String scan = System.getProperty("org.eclipse.wst.sse.core.taskscanner");
- if (scan == null || !scan.equalsIgnoreCase("off")) {
- TaskScanningScheduler.startup();
- }
// initialize FileBuffer handling
FileBufferModelManager.startup();
}
diff --git a/bundles/org.eclipse.wst.sse.ui/src/org/eclipse/wst/sse/ui/internal/SSEUIPlugin.java b/bundles/org.eclipse.wst.sse.ui/src/org/eclipse/wst/sse/ui/internal/SSEUIPlugin.java
index fbd022711a..618a044249 100644
--- a/bundles/org.eclipse.wst.sse.ui/src/org/eclipse/wst/sse/ui/internal/SSEUIPlugin.java
+++ b/bundles/org.eclipse.wst.sse.ui/src/org/eclipse/wst/sse/ui/internal/SSEUIPlugin.java
@@ -15,10 +15,12 @@ package org.eclipse.wst.sse.ui.internal;
import org.eclipse.ui.plugin.AbstractUIPlugin;
+import org.eclipse.wst.sse.core.internal.tasks.TaskScanningScheduler;
import org.eclipse.wst.sse.ui.internal.provisional.registry.AdapterFactoryRegistry;
import org.eclipse.wst.sse.ui.internal.provisional.registry.AdapterFactoryRegistryImpl;
import org.eclipse.wst.sse.ui.internal.provisional.registry.embedded.EmbeddedAdapterFactoryRegistryImpl;
import org.eclipse.wst.sse.ui.internal.taginfo.TextHoverManager;
+import org.osgi.framework.BundleContext;
public class SSEUIPlugin extends AbstractUIPlugin {
@@ -63,4 +65,22 @@ public class SSEUIPlugin extends AbstractUIPlugin {
}
return fTextHoverManager;
}
+
+ public void start(BundleContext context) throws Exception {
+ super.start(context);
+ /**
+ * If the user starts the workbench with
+ * -Dorg.eclipse.wst.sse.core.taskscanner=off, the scanner should be
+ * disabled
+ */
+ String scan = System.getProperty("org.eclipse.wst.sse.core.taskscanner");
+ if (scan == null || !scan.equalsIgnoreCase("off")) {
+ TaskScanningScheduler.startup();
+ }
+ }
+
+ public void stop(BundleContext context) throws Exception {
+ super.stop(context);
+ TaskScanningScheduler.shutdown();
+ }
}

Back to the top