1 18 package org.visualcontent.extensionpoints; 19 20 import org.eclipse.jface.resource.ImageDescriptor; 21 import org.eclipse.ui.plugin.AbstractUIPlugin; 22 import org.osgi.framework.BundleContext; 23 24 27 public class ExtensionpointsPlugin extends AbstractUIPlugin { 28 29 private static ExtensionpointsPlugin plugin; 31 32 35 public ExtensionpointsPlugin() { 36 plugin = this; 37 } 38 39 42 public void start(BundleContext context) throws Exception { 43 super.start(context); 44 } 45 46 49 public void stop(BundleContext context) throws Exception { 50 super.stop(context); 51 plugin = null; 52 } 53 54 57 public static ExtensionpointsPlugin getDefault() { 58 return plugin; 59 } 60 61 68 public static ImageDescriptor getImageDescriptor(String path) { 69 return AbstractUIPlugin.imageDescriptorFromPlugin("org.visualcontent.extensionpoints", path); 70 } 71 } 72 | Popular Tags |