package @@BUNDLE_SHARED_NAME@@; | |
import org.osgi.framework.BundleActivator; | |
import org.osgi.framework.BundleContext; | |
public class Activator implements BundleActivator{ | |
public static String PLUGIN_ID="@@BUNDLE_SHARED_NAME@@"; | |
private static Activator plugin; | |
public static Activator getDefault(){ | |
return plugin; | |
} | |
@Override | |
public void start(BundleContext context) throws Exception{ | |
plugin=this; | |
} | |
@Override | |
public void stop(BundleContext context) throws Exception{ | |
plugin=null; | |
} | |
} | |