Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Kaegi2008-11-13 20:50:54 +0000
committerSimon Kaegi2008-11-13 20:50:54 +0000
commitd9f3a7a88b69b82908634617d875c40b5786e2bd (patch)
tree0f8e9bad77bc33008882d342b7a1904d771f3c94
parent2d89b637160ea46a111578a346c955734dabcd69 (diff)
downloadrt.equinox.p2-d9f3a7a88b69b82908634617d875c40b5786e2bd.tar.gz
rt.equinox.p2-d9f3a7a88b69b82908634617d875c40b5786e2bd.tar.xz
rt.equinox.p2-d9f3a7a88b69b82908634617d875c40b5786e2bd.zip
cleanup unused variables
-rw-r--r--bundles/org.eclipse.equinox.simpleconfigurator.manipulator/src/org/eclipse/equinox/internal/simpleconfigurator/manipulator/Activator.java13
1 files changed, 3 insertions, 10 deletions
diff --git a/bundles/org.eclipse.equinox.simpleconfigurator.manipulator/src/org/eclipse/equinox/internal/simpleconfigurator/manipulator/Activator.java b/bundles/org.eclipse.equinox.simpleconfigurator.manipulator/src/org/eclipse/equinox/internal/simpleconfigurator/manipulator/Activator.java
index a318f5f9a..d88b93740 100644
--- a/bundles/org.eclipse.equinox.simpleconfigurator.manipulator/src/org/eclipse/equinox/internal/simpleconfigurator/manipulator/Activator.java
+++ b/bundles/org.eclipse.equinox.simpleconfigurator.manipulator/src/org/eclipse/equinox/internal/simpleconfigurator/manipulator/Activator.java
@@ -12,14 +12,11 @@ import java.util.Dictionary;
import java.util.Hashtable;
import org.eclipse.equinox.internal.provisional.configuratormanipulator.ConfiguratorManipulator;
import org.osgi.framework.*;
-import org.osgi.util.tracker.ServiceTracker;
public class Activator implements BundleActivator {
final static boolean DEBUG = true;
- private static BundleContext context;
- private static ServiceTracker installLocationTracker;
+ private static volatile BundleContext context;
private ServiceRegistration registration;
- SimpleConfiguratorManipulatorImpl manipulator = null;
static BundleContext getContext() {
return context;
@@ -29,22 +26,18 @@ public class Activator implements BundleActivator {
Dictionary props = new Hashtable();
props.put(ConfiguratorManipulator.SERVICE_PROP_KEY_CONFIGURATOR_BUNDLESYMBOLICNAME, SimpleConfiguratorManipulatorImpl.SERVICE_PROP_VALUE_CONFIGURATOR_SYMBOLICNAME);
props.put(Constants.SERVICE_VENDOR, "Eclipse.org"); //$NON-NLS-1$
- manipulator = new SimpleConfiguratorManipulatorImpl();
+ SimpleConfiguratorManipulatorImpl manipulator = new SimpleConfiguratorManipulatorImpl();
registration = context.registerService(ConfiguratorManipulator.class.getName(), manipulator, props);
}
public void start(BundleContext bundleContext) throws Exception {
Activator.context = bundleContext;
- this.registerConfiguratorManipulator();
+ registerConfiguratorManipulator();
}
public void stop(BundleContext bundleContext) throws Exception {
if (registration != null)
registration.unregister();
- if (installLocationTracker != null) {
- installLocationTracker.close();
- installLocationTracker = null;
- }
Activator.context = null;
}
}

Back to the top