editor now updatable via updateSite
[taxeditor.git] / taxeditor-application / src / main / java / eu / etaxonomy / taxeditor / TaxonomicEditorPlugin.java
1 package eu.etaxonomy.taxeditor;
2
3 import org.apache.log4j.Logger;
4 import org.eclipse.ui.plugin.AbstractUIPlugin;
5 import org.osgi.framework.BundleContext;
6
7 /**
8 * The activator class controls the plug-in life cycle
9 */
10 public class TaxonomicEditorPlugin extends AbstractUIPlugin {
11 private static final Logger logger = Logger
12 .getLogger(TaxonomicEditorPlugin.class);
13
14 // The plug-in ID
15 public static final String PLUGIN_ID = "eu.etaxonomy.taxeditor.application";
16
17 // The shared instance
18 private static TaxonomicEditorPlugin plugin;
19
20 /**
21 * The constructor
22 */
23 public TaxonomicEditorPlugin() {
24 }
25
26 /*
27 * (non-Javadoc)
28 * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
29 */
30 public void start(BundleContext context) throws Exception {
31 super.start(context);
32 plugin = this;
33 logger.debug("Taxonomic Editor started.");
34 }
35
36 /*
37 * (non-Javadoc)
38 * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
39 */
40 public void stop(BundleContext context) throws Exception {
41 plugin = null;
42 super.stop(context);
43 logger.debug("Taxonomic Editor stopped.");
44 }
45
46 /**
47 * Returns the shared instance
48 *
49 * @return the shared instance
50 */
51 public static TaxonomicEditorPlugin getDefault() {
52 return plugin;
53 }
54 }