1 package eu
.etaxonomy
.taxeditor
.editor
.internal
;
3 import org
.apache
.log4j
.Logger
;
4 import org
.eclipse
.jface
.resource
.ImageDescriptor
;
5 import org
.eclipse
.jface
.resource
.ImageRegistry
;
6 import org
.eclipse
.ui
.plugin
.AbstractUIPlugin
;
7 import org
.osgi
.framework
.BundleContext
;
10 * The activator class controls the plug-in life cycle
12 public class TaxeditorEditorPlugin
extends AbstractUIPlugin
{
14 public static final Logger logger
= Logger
.getLogger(TaxeditorEditorPlugin
.class);
17 public static final String PLUGIN_ID
= "eu.etaxonomy.taxeditor.editor";
19 // The shared instance
20 private static TaxeditorEditorPlugin plugin
;
25 public TaxeditorEditorPlugin() {
30 * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
32 public void start(BundleContext context
) throws Exception
{
35 logger
.trace("Plugin started: " + this.getBundle().getSymbolicName());
40 * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
42 public void stop(BundleContext context
) throws Exception
{
45 logger
.trace("Plugin stopped");
49 * Returns the shared instance
51 * @return the shared instance
53 public static TaxeditorEditorPlugin
getDefault() {