Skip to content
Snippets Groups Projects
Commit 7c1cccc9 authored by dgelessus's avatar dgelessus
Browse files

Remove static Activator.plugin fields where not used

parent 58c8b655
No related branches found
No related tags found
No related merge requests found
Pipeline #117227 passed
package de.prob.core.tests; package de.prob.core.tests;
import org.eclipse.core.runtime.Plugin; import org.eclipse.core.runtime.Plugin;
import org.osgi.framework.BundleContext;
/** /**
* The activator class controls the plug-in life cycle * The activator class controls the plug-in life cycle
...@@ -11,32 +10,9 @@ public class Activator extends Plugin { ...@@ -11,32 +10,9 @@ public class Activator extends Plugin {
// The plug-in ID // The plug-in ID
public static final String PLUGIN_ID = "de.prob.core.tests"; //$NON-NLS-1$ public static final String PLUGIN_ID = "de.prob.core.tests"; //$NON-NLS-1$
// The shared instance
private static Activator plugin;
/** /**
* The constructor * The constructor
*/ */
public Activator() { public Activator() {
} }
public void start(BundleContext context) throws Exception {
super.start(context);
plugin = this;
}
public void stop(BundleContext context) throws Exception {
plugin = null;
super.stop(context);
}
/**
* Returns the shared instance
*
* @return the shared instance
*/
public static Activator getDefault() {
return plugin;
}
} }
package de.prob.eventb.disprover.ui; package de.prob.eventb.disprover.ui;
import org.eclipse.ui.plugin.AbstractUIPlugin; import org.eclipse.ui.plugin.AbstractUIPlugin;
import org.osgi.framework.BundleContext;
public class DisproverActivator extends AbstractUIPlugin { public class DisproverActivator extends AbstractUIPlugin {
// The plug-in ID // The plug-in ID
public static final String PLUGIN_ID = "de.prob.eventb.disprover.ui"; public static final String PLUGIN_ID = "de.prob.eventb.disprover.ui";
// The shared instance
private static DisproverActivator plugin;
/** /**
* The constructor * The constructor
*/ */
public DisproverActivator() { public DisproverActivator() {
} }
@Override
public void start(BundleContext context) throws Exception {
super.start(context);
plugin = this;
}
@Override
public void stop(BundleContext context) throws Exception {
plugin = null;
super.stop(context);
}
/**
* Returns the shared instance
*
* @return the shared instance
*/
public static DisproverActivator getDefault() {
return plugin;
}
} }
...@@ -19,7 +19,6 @@ public class Activator extends AbstractUIPlugin { ...@@ -19,7 +19,6 @@ public class Activator extends AbstractUIPlugin {
public static final String PLUGIN_ID = "de.prob.symbolic"; //$NON-NLS-1$ public static final String PLUGIN_ID = "de.prob.symbolic"; //$NON-NLS-1$
// The shared instance // The shared instance
private static Activator plugin;
/** /**
* The constructor * The constructor
...@@ -30,27 +29,11 @@ public class Activator extends AbstractUIPlugin { ...@@ -30,27 +29,11 @@ public class Activator extends AbstractUIPlugin {
@Override @Override
public void start(BundleContext context) throws Exception { public void start(BundleContext context) throws Exception {
super.start(context); super.start(context);
plugin = this;
setConfig(); setConfig();
} }
@Override
public void stop(BundleContext context) throws Exception {
plugin = null;
super.stop(context);
}
/**
* Returns the shared instance
*
* @return the shared instance
*/
public static Activator getDefault() {
return plugin;
}
/** /**
* Registers a file configuration setter for our plugin. * Registers a file configuration setter for our plugin.
*/ */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment