Project

General

Profile

« Previous | Next » 

Revision 4d1f9d42

Added by Andreas Müller almost 2 years ago

cleanup

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/key/polytomous/PolytomousKeyEditorInput.java
26 26
 */
27 27
public class PolytomousKeyEditorInput extends AbstractIdentificationEditorInput<PolytomousKey> {
28 28

  
29
    private final String name;
30 29
    private PolytomousKey key;
31 30

  
32 31

  
......
37 36
        propertyPath.add("root");
38 37
        propertyPath.add("root.*");
39 38
        this.key = CdmStore.getService(IPolytomousKeyService.class).load(polytomousKeyUuid, propertyPath);
40
        this.name = key.getTitleCache();
41 39
    }
42 40

  
43
//    public PolytomousKeyEditorInput(UUID polytomousKeyUuid, String name) {
44
//        super(CdmStore.createConversation());
45
//        this.keyUuid = polytomousKeyUuid;
46
//        this.name = name;
47
//    }
48

  
49 41
    public static PolytomousKeyEditorInput NewInstance(UUID polytomousKeyUuid) throws Exception{
50 42
        try{
51 43
            ConversationHolder conversation = CdmStore.createConversation();
......
83 75

  
84 76
    @Override
85 77
    public Map<Object, List<String>> getPropertyPathsMap() {
86
        Map<Object,List<String>> propertyPathsMap = new HashMap<Object,List<String>>();
78
        Map<Object,List<String>> propertyPathsMap = new HashMap<>();
87 79

  
88 80
        List<String> polytomousKeyNodePropertyPaths = Arrays.asList(new String[] {
89 81
                "statement" //$NON-NLS-1$

Also available in: Unified diff