fix NPE bug and termloading bug for Usage Records #4247
[taxeditor.git] / eu.etaxonomy.taxeditor.editor / src / main / java / eu / etaxonomy / taxeditor / editor / internal / TaxeditorEditorPlugin.java
index ed72dd94f5451be31055a3121febc437f2001cdb..639395b3522b4652a45b9da557f25bde79f65ac7 100644 (file)
@@ -33,10 +33,6 @@ public class TaxeditorEditorPlugin extends AbstractUIPlugin {
        public TaxeditorEditorPlugin() {
        }
 
-       /*
-        * (non-Javadoc)
-        * @see org.eclipse.ui.plugin.AbstractUIPlugin#start(org.osgi.framework.BundleContext)
-        */
        /** {@inheritDoc} */
        public void start(BundleContext context) throws Exception {
                super.start(context);
@@ -44,6 +40,9 @@ public class TaxeditorEditorPlugin extends AbstractUIPlugin {
                EditorStateManager stateManager = new EditorStateManager();
                CdmStore.getContextManager().addContextListener(stateManager);
                
+               UseObjectManager useManager = new UseObjectManager();            
+               CdmStore.getContextManager().addContextListener(useManager);
+               
                ValidationContextListener vcl = new ValidationContextListener();
 //             CdmStore.getContextManager().addContextListener(vcl);
                
@@ -51,10 +50,7 @@ public class TaxeditorEditorPlugin extends AbstractUIPlugin {
                logger.trace("Plugin started: " + this.getBundle().getSymbolicName());
        }
 
-       /*
-        * (non-Javadoc)
-        * @see org.eclipse.ui.plugin.AbstractUIPlugin#stop(org.osgi.framework.BundleContext)
-        */
+
        /** {@inheritDoc} */
        public void stop(BundleContext context) throws Exception {
                plugin = null;