1 package eu
.etaxonomy
.taxeditor
.local
;
3 import org
.eclipse
.jface
.resource
.ImageDescriptor
;
4 import org
.eclipse
.jface
.resource
.ImageRegistry
;
5 import org
.eclipse
.ui
.plugin
.AbstractUIPlugin
;
6 import org
.osgi
.framework
.BundleContext
;
9 * The activator class controls the plug-in life cycle
13 public class TaxeditorWebappPlugin
extends AbstractUIPlugin
{
16 /** Constant <code>PLUGIN_ID="eu.etaxonomy.taxeditor.editor"</code> */
17 public static final String PLUGIN_ID
= "eu.etaxonomy.taxeditor.editor";
19 // The shared instance
20 private static TaxeditorWebappPlugin plugin
;
25 public TaxeditorWebappPlugin() {
29 public void start(BundleContext context
) throws Exception
{
35 public void stop(BundleContext context
) throws Exception
{
41 * Returns the shared instance
43 * @return the shared instance
45 public static TaxeditorWebappPlugin
getDefault() {
50 * Returns an image descriptor for the image file at the given
51 * plug-in relative path
53 * @param path the path
54 * @return the image descriptor
56 public static ImageDescriptor
getImageDescriptor(String path
) {
57 return imageDescriptorFromPlugin(PLUGIN_ID
, path
);
62 * Exposes this normally protected method.
64 * @return a {@link org.eclipse.jface.resource.ImageRegistry} object.
67 public ImageRegistry
createImageRegistry(){
68 return super.createImageRegistry();