cleanup
[taxeditor.git] / eu.etaxonomy.taxeditor.editor / src / main / java / eu / etaxonomy / taxeditor / editor / key / polytomous / PolytomousKeyEditorInput.java
index d0d30b43cd93ce2ae3dc49f588f17592710e4096..e1b8578389013a5883ca5e35792b888957f178e1 100644 (file)
@@ -26,7 +26,6 @@ import eu.etaxonomy.taxeditor.store.CdmStore;
  */
 public class PolytomousKeyEditorInput extends AbstractIdentificationEditorInput<PolytomousKey> {
 
-    private final String name;
     private PolytomousKey key;
 
 
@@ -37,15 +36,8 @@ public class PolytomousKeyEditorInput extends AbstractIdentificationEditorInput<
         propertyPath.add("root");
         propertyPath.add("root.*");
         this.key = CdmStore.getService(IPolytomousKeyService.class).load(polytomousKeyUuid, propertyPath);
-        this.name = key.getTitleCache();
     }
 
-//    public PolytomousKeyEditorInput(UUID polytomousKeyUuid, String name) {
-//        super(CdmStore.createConversation());
-//        this.keyUuid = polytomousKeyUuid;
-//        this.name = name;
-//    }
-
     public static PolytomousKeyEditorInput NewInstance(UUID polytomousKeyUuid) throws Exception{
         try{
             ConversationHolder conversation = CdmStore.createConversation();
@@ -83,7 +75,7 @@ public class PolytomousKeyEditorInput extends AbstractIdentificationEditorInput<
 
     @Override
     public Map<Object, List<String>> getPropertyPathsMap() {
-        Map<Object,List<String>> propertyPathsMap = new HashMap<Object,List<String>>();
+        Map<Object,List<String>> propertyPathsMap = new HashMap<>();
 
         List<String> polytomousKeyNodePropertyPaths = Arrays.asList(new String[] {
                 "statement" //$NON-NLS-1$