Project

General

Profile

« Previous | Next » 

Revision d343a6cf

Added by Patrick Plitzner about 5 years ago

ref #8146 Adapt feature tree editor and move operation to model change

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/featuretree/e4/FeatureTreeEditor.java
157 157
        if(parentNode!=null){
158 158
            FeatureNode copiedNode = (FeatureNode) ((IStructuredSelection)clipBoardSelection).getFirstElement();
159 159

  
160
            AddFeatureOperation operation = new AddFeatureOperation(copiedNode.getFeature().getUuid(), parentNode, this, this);
160
            AddFeatureOperation operation = new AddFeatureOperation(copiedNode.getTerm().getUuid(), parentNode, this, this);
161 161
            AbstractUtility.executeOperation(operation, sync);
162 162
        }
163 163

  
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/featuretree/e4/operation/MoveFeatureOperation.java
57 57
        }
58 58
        //copy operation
59 59
        else if(currentOperation==DND.DROP_COPY){
60
            updateResult = CdmStore.getService(IFeatureNodeService.class).addChildFeatureNode(target.getUuid(), droppedNode.getFeature().getUuid());
60
            updateResult = CdmStore.getService(IFeatureNodeService.class).addChildFeatureNode(target.getUuid(), droppedNode.getTerm().getUuid());
61 61
        }
62 62
        if(updateResult!=null){
63 63
            return postExecute(updateResult.getCdmEntity());

Also available in: Unified diff