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() {
38 * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
41 public void start(BundleContext context
) throws Exception
{
44 EditorStateManager stateManager
= new EditorStateManager();
45 CdmStore
.getContextManager().addContextListener(stateManager
);
47 ValidationContextListener vcl
= new ValidationContextListener();
48 // CdmStore.getContextManager().addContextListener(vcl);
51 logger
.trace("Plugin started: " + this.getBundle().getSymbolicName());
56 * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
59 public void stop(BundleContext context
) throws Exception
{
62 logger
.trace("Plugin stopped");
66 * Returns the shared instance
68 * @return the shared instance
70 public static TaxeditorEditorPlugin
getDefault() {