Project

General

Profile

« Previous | Next » 

Revision efd30f4b

Added by Katja Luther over 7 years ago

fix #5841: set selection to newly created keynode

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/key/polytomous/operation/RemotingCreatePolytomousKeyNodeOperation.java
25 25
public class RemotingCreatePolytomousKeyNodeOperation extends RemotingCdmDefaultOperation {
26 26

  
27 27
    private final PolytomousKeyNode parentNode;
28
    private PolytomousKeyNode childNode;
29

  
30
    public PolytomousKeyNode getChildNode() {
31
        return childNode;
32
    }
28 33

  
29 34
    private final static String LABEL = "Create new polytomous key node";
30 35

  
......
40 45
     */
41 46
    @Override
42 47
    protected CdmBase doSimpleExecute(IProgressMonitor monitor, IAdaptable info) throws Exception {
43
      PolytomousKeyNode childNode = PolytomousKeyNode.NewInstance();
48
      childNode = PolytomousKeyNode.NewInstance();
44 49
      parentNode.addChild(childNode);
45 50
      return childNode;
46 51
    }

Also available in: Unified diff