1 package eu
.etaxonomy
.taxeditor
.editor
.internal
;
3 import org
.apache
.log4j
.Logger
;
4 import org
.eclipse
.ui
.plugin
.AbstractUIPlugin
;
5 import org
.osgi
.framework
.BundleContext
;
7 import eu
.etaxonomy
.taxeditor
.editor
.EditorStateManager
;
8 import eu
.etaxonomy
.taxeditor
.editor
.UseObjectManager
;
9 import eu
.etaxonomy
.taxeditor
.store
.CdmStore
;
12 * The activator class controls the plug-in life cycle
17 public class TaxeditorEditorPlugin
extends AbstractUIPlugin
{
19 /** Constant <code>logger</code> */
20 public static final Logger logger
= Logger
.getLogger(TaxeditorEditorPlugin
.class);
23 /** Constant <code>PLUGIN_ID="eu.etaxonomy.taxeditor.editor"</code> */
24 public static final String PLUGIN_ID
= "eu.etaxonomy.taxeditor.editor";
26 // The shared instance
27 private static TaxeditorEditorPlugin plugin
;
32 public TaxeditorEditorPlugin() {
37 * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
40 public void start(BundleContext context
) throws Exception
{
43 EditorStateManager stateManager
= new EditorStateManager();
44 CdmStore
.getContextManager().addContextListener(stateManager
);
47 //UseObjectManager useManager = new UseObjectManager();
48 //CdmStore.getContextManager().addContextListener(useManager);
52 logger
.trace("Plugin started: " + this.getBundle().getSymbolicName());
57 * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
60 public void stop(BundleContext context
) throws Exception
{
63 logger
.trace("Plugin stopped");
67 * Returns the shared instance
69 * @return the shared instance
71 public static TaxeditorEditorPlugin
getDefault() {