Project

General

Profile

« Previous | Next » 

Revision 1884064f

Added by Katja Luther almost 6 years ago

cleanup

View differences:

eu.etaxonomy.taxeditor.navigation/src/main/java/eu/etaxonomy/taxeditor/navigation/navigator/operation/RemotingMoveTaxonOperation.java
55 55

  
56 56
    }
57 57

  
58
//    public RemotingMoveTaxonOperation(Object source,
59
//            boolean async,
60
//            List<TaxonNode> taxonNodeToMove,
61
//            TaxonNode newParentTreeNode,
62
//            MovingType moveToParentNode) {
63
//        super(LABEL, Action.Update, source,async);
64
//
65
//        taxonNodesToMoveUuid=taxonNodeToMove;
66
//        this.newParentTreeNodeUuid = newParentTreeNode.getUuid();
67
//        this.moveToParentNode = moveToParentNode;
68
//    }
69

  
70

  
71
//    /**
72
//     * @param source
73
//     * @param async
74
//     * @param uuids
75
//     * @param uuid
76
//     * @param child
77
//     */
78
//    public RemotingMoveTaxonOperation(Object source, boolean async, Set<UUID> uuids, UUID uuid,
79
//            MovingType child) {
80
//        super(LABEL, Action.Update, source,async);
81
//        this.taxonNodesToMoveUuid = uuids;
82
//        this.newParentTreeNodeUuid = uuid;
83
//        this.moveToParentNode = child;
84
//    }
85

  
86 58
    /* (non-Javadoc)
87 59
     * @see eu.etaxonomy.taxeditor.operation.RemotingCdmUpdateOperation#doUpdateExecute(org.eclipse.core.runtime.IProgressMonitor, org.eclipse.core.runtime.IAdaptable)
88 60
     */
89 61
    @Override
90 62
    protected UpdateResult doUpdateExecute(IProgressMonitor monitor, IAdaptable info) throws Exception {
91
//        switch (this.moveToParentNode) {
92
//            case CHILD:
93
//                return CdmApplicationState.getService(ITaxonNodeService.class).moveTaxonNodes(taxonNodesToMoveUuid,
94
//                        newParentTreeNodeUuid, 0);
95
//            case BEHIND:
96
//                runMoniteredOperation();
97
//                return updateResult;
98
//             default:
99
//                    UpdateResult result = new UpdateResult();
100
//                    result.setAbort();
101
//                    result.addException(new Exception("The moving type is invalid.")); //$NON-NLS-1$
102
//                    return result;
103
//        }
104 63
        runMoniteredOperation();
105
//        taxonNavigator.refresh();
106 64
        return updateResult;
107 65
    }
108 66

  
......
140 98
                    }
141 99
                });
142 100
        }
143
//        monitor.done();
101

  
144 102

  
145 103
    }
146 104

  

Also available in: Unified diff