- added context menu option to create a new FieldUnit in DerivateEditor
[taxeditor.git] / eu.etaxonomy.taxeditor.editor / src / main / java / eu / etaxonomy / taxeditor / editor / view / derivate / DerivateViewEditorInput.java
index 0d677cd096f6738ac89c2d2b26d8428aacd90a06..7050078e1a47d191c10a4bd35d679ad14c9dd265 100644 (file)
@@ -40,7 +40,7 @@ public class DerivateViewEditorInput implements IEditorInput{
     /**
      * The selected derivate {@link UUID}s
      */
-    private Set<UUID> derivateUUIDs;
+    private final Set<UUID> derivateUUIDs;
     /**
      * List of the {@link UUID}s of the root elements of the hierarchy (may be the same objects as the derivates)
      */
@@ -153,10 +153,11 @@ public class DerivateViewEditorInput implements IEditorInput{
         return derivateUUIDs;
     }
 
-    public void setRootAsDerivate(){
-        this.derivateUUIDs = this.rootUUIDs;
+    public void addRootUuid(UUID root){
+        rootUUIDs.add(root);
     }
 
+
     public ConversationHolder getConversationHolder() {
         return conversationHolder;
     }