Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrbrooks2010-10-08 19:01:44 +0000
committerRyan D. Brooks2010-10-08 19:01:44 +0000
commit524c8a1dc6eb3b26a509f8c6591f26ba8dddac5b (patch)
treea842b57048a7f85c7dfb5a1bbca9a0cac1e5f518 /plugins/org.eclipse.osee.framework.ui.service.control
parent9a31c0d441b383ffa3ceec14f3005c583fef2168 (diff)
downloadorg.eclipse.osee-524c8a1dc6eb3b26a509f8c6591f26ba8dddac5b.tar.gz
org.eclipse.osee-524c8a1dc6eb3b26a509f8c6591f26ba8dddac5b.tar.xz
org.eclipse.osee-524c8a1dc6eb3b26a509f8c6591f26ba8dddac5b.zip
refactor: Remove unnecessary dependencies on OseeUiActivator
Diffstat (limited to 'plugins/org.eclipse.osee.framework.ui.service.control')
-rw-r--r--plugins/org.eclipse.osee.framework.ui.service.control/src/org/eclipse/osee/framework/ui/service/control/ControlPlugin.java17
1 files changed, 5 insertions, 12 deletions
diff --git a/plugins/org.eclipse.osee.framework.ui.service.control/src/org/eclipse/osee/framework/ui/service/control/ControlPlugin.java b/plugins/org.eclipse.osee.framework.ui.service.control/src/org/eclipse/osee/framework/ui/service/control/ControlPlugin.java
index 5f1565d4753..ab9a5e022d3 100644
--- a/plugins/org.eclipse.osee.framework.ui.service.control/src/org/eclipse/osee/framework/ui/service/control/ControlPlugin.java
+++ b/plugins/org.eclipse.osee.framework.ui.service.control/src/org/eclipse/osee/framework/ui/service/control/ControlPlugin.java
@@ -11,7 +11,7 @@
package org.eclipse.osee.framework.ui.service.control;
import org.eclipse.osee.framework.plugin.core.IWorkbenchUserService;
-import org.eclipse.osee.framework.ui.plugin.OseeUiActivator;
+import org.osgi.framework.BundleActivator;
import org.osgi.framework.BundleContext;
import org.osgi.util.tracker.ServiceTracker;
@@ -20,22 +20,16 @@ import org.osgi.util.tracker.ServiceTracker;
*
* @author Roberto E. Escobar
*/
-public class ControlPlugin extends OseeUiActivator {
-
+public class ControlPlugin implements BundleActivator {
public static final String PLUGIN_ID = "org.eclipse.osee.framework.ui.service.control";
- private static ControlPlugin pluginInstance; // The shared instance.
+ private static ControlPlugin pluginInstance;
private ServiceTracker tracker;
- public ControlPlugin() {
- super(PLUGIN_ID);
- pluginInstance = this;
- }
-
@Override
public void start(BundleContext context) throws Exception {
- super.start(context);
tracker = new ServiceTracker(context, IWorkbenchUserService.class.getName(), null);
tracker.open();
+ pluginInstance = this;
}
@Override
@@ -43,7 +37,6 @@ public class ControlPlugin extends OseeUiActivator {
if (tracker != null) {
tracker.close();
}
- super.stop(context);
}
/**
@@ -56,4 +49,4 @@ public class ControlPlugin extends OseeUiActivator {
public IWorkbenchUserService getDirectoryService() {
return (IWorkbenchUserService) tracker.getService();
}
-}
+} \ No newline at end of file

Back to the top