1 11 package org.eclipse.pde.internal.ui.templates; 12 13 import java.net.URL ; 14 15 import org.eclipse.ui.plugin.AbstractUIPlugin; 16 import org.osgi.framework.BundleContext; 17 18 public class Activator extends AbstractUIPlugin { 19 20 private static Activator fInstance; 22 23 public URL getInstallURL() { 24 return getDefault().getBundle().getEntry("/"); } 26 27 public static Activator getDefault() { 28 return fInstance; 29 } 30 31 public static String getPluginId() { 32 return getDefault().getBundle().getSymbolicName(); 33 } 34 35 38 public void start(BundleContext context) throws Exception { 39 super.start(context); 40 fInstance = this; 41 } 42 43 public void stop(BundleContext context) throws Exception { 44 fInstance = null; 45 super.stop(context); 46 } 47 } 48 | Popular Tags |