1 package eu
.etaxonomy
.taxeditor
.webapp
;
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
14 public class TaxeditorWebappPlugin
extends AbstractUIPlugin
{
17 /** Constant <code>PLUGIN_ID="eu.etaxonomy.taxeditor.editor"</code> */
18 public static final String PLUGIN_ID
= "eu.etaxonomy.taxeditor.editor";
20 // The shared instance
21 private static TaxeditorWebappPlugin plugin
;
26 public TaxeditorWebappPlugin() {
31 * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
35 public void start(BundleContext context
) throws Exception
{
42 * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
46 public void stop(BundleContext context
) throws Exception
{
52 * Returns the shared instance
54 * @return the shared instance
56 public static TaxeditorWebappPlugin
getDefault() {
61 * Returns an image descriptor for the image file at the given
62 * plug-in relative path
64 * @param path the path
65 * @return the image descriptor
67 public static ImageDescriptor
getImageDescriptor(String path
) {
68 return imageDescriptorFromPlugin(PLUGIN_ID
, path
);
73 * Exposes this normally protected method.
75 * @return a {@link org.eclipse.jface.resource.ImageRegistry} object.
78 public ImageRegistry
createImageRegistry(){
79 return super.createImageRegistry();