tabbed_properties branch merged into trunk completely
authorn.hoffmann <n.hoffmann@localhost>
Wed, 9 Jun 2010 11:55:02 +0000 (11:55 +0000)
committern.hoffmann <n.hoffmann@localhost>
Wed, 9 Jun 2010 11:55:02 +0000 (11:55 +0000)
taxeditor-navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/internal/TaxeditorNavigationPlugin.java

index f6ed5f332288cd788ced9c28271b3ea84164938b..b36207064a0c8be441303030115c0b79a8aab4f6 100644 (file)
@@ -4,6 +4,9 @@ import org.eclipse.jface.resource.ImageDescriptor;
 import org.eclipse.ui.plugin.AbstractUIPlugin;
 import org.osgi.framework.BundleContext;
 
+import eu.etaxonomy.taxeditor.navigation.StateManager;
+import eu.etaxonomy.taxeditor.store.CdmStore;
+
 /**
  * The activator class controls the plug-in life cycle
  */
@@ -14,6 +17,8 @@ public class TaxeditorNavigationPlugin extends AbstractUIPlugin {
 
        // The shared instance
        private static TaxeditorNavigationPlugin plugin;
+
+       private StateManager stateManager;
        
        /**
         * The constructor
@@ -27,6 +32,9 @@ public class TaxeditorNavigationPlugin extends AbstractUIPlugin {
         */
        public void start(BundleContext context) throws Exception {
                super.start(context);
+
+               stateManager = new StateManager();
+               CdmStore.addContextListener(stateManager);
                plugin = this;
        }