added session manager calls to the polytomous key views
authorCherian Mathew <c.mathew@bgbm.org>
Wed, 10 Dec 2014 17:01:45 +0000 (17:01 +0000)
committerCherian Mathew <c.mathew@bgbm.org>
Wed, 10 Dec 2014 17:01:45 +0000 (17:01 +0000)
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/key/KeyEditor.java
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/key/polytomous/PolytomousKeyEditorInput.java

index 839e5e9e3029b157180292132fe1e216b1a955fd..4eff25498ac629ef7b47a4b3fb3851f0c533b5e5 100644 (file)
@@ -184,6 +184,7 @@ public class KeyEditor extends FormEditor implements IConversationEnabled,
        public void dispose() {
                conversation.unregisterForDataStoreChanges(this);
                conversation.close();
+               ((PolytomousKeyEditorInput)getEditorInput()).dispose();
                super.dispose();
        }
 
@@ -221,4 +222,7 @@ public class KeyEditor extends FormEditor implements IConversationEnabled,
                PolytomousKey key = (PolytomousKey) input.getKey();
                setPartName(key.getTitleCache());
        }
+       
+       
+
 }
index 7debadbe5f651385094cb514c28934cf3ef1bb08..9ab9fbf80c46753f893e46c4217c39b9478fd2bf 100644 (file)
@@ -72,4 +72,8 @@ public class PolytomousKeyEditorInput extends AbstractIdentificationEditorInput<
                }
                return super.equals(object);
        }
+       
+       public void dispose() {
+               CdmStore.getCurrentSessionManager().dispose(this);
+       }
 }