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
.editor
.validation
.ValidationContextListener
;
10 import eu
.etaxonomy
.taxeditor
.store
.CdmStore
;
13 * The activator class controls the plug-in life cycle
18 public class TaxeditorEditorPlugin
extends AbstractUIPlugin
{
20 /** Constant <code>logger</code> */
21 public static final Logger logger
= Logger
.getLogger(TaxeditorEditorPlugin
.class);
24 /** Constant <code>PLUGIN_ID="eu.etaxonomy.taxeditor.editor"</code> */
25 public static final String PLUGIN_ID
= "eu.etaxonomy.taxeditor.editor";
27 // The shared instance
28 private static TaxeditorEditorPlugin plugin
;
33 public TaxeditorEditorPlugin() {
37 public void start(BundleContext context
) throws Exception
{
40 EditorStateManager stateManager
= new EditorStateManager();
41 CdmStore
.getContextManager().addContextListener(stateManager
);
43 UseObjectManager useManager
= new UseObjectManager();
44 CdmStore
.getContextManager().addContextListener(useManager
);
46 ValidationContextListener vcl
= new ValidationContextListener();
47 // CdmStore.getContextManager().addContextListener(vcl);
50 logger
.trace("Plugin started: " + this.getBundle().getSymbolicName());
55 public void stop(BundleContext context
) throws Exception
{
58 logger
.trace("Plugin stopped");
62 * Returns the shared instance
64 * @return the shared instance
66 public static TaxeditorEditorPlugin
getDefault() {