Trim code
authorPatrick Plitzner <p.plitzner@bgbm.org>
Mon, 5 Oct 2015 11:27:28 +0000 (13:27 +0200)
committerPatrick Plitzner <p.plitzner@bgbm.org>
Mon, 5 Oct 2015 11:27:28 +0000 (13:27 +0200)
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/descriptive/handler/MoveDescriptionElementsHandler.java

index b91f68a7bec50a0481af5447497ccd252333e278..6ae90dc0479865b53921c32b5bfcb630dc06ec02 100644 (file)
@@ -55,9 +55,7 @@ import eu.etaxonomy.taxeditor.ui.dialog.selection.TaxonNodeSelectionDialog;
 public class MoveDescriptionElementsHandler extends AbstractHandler implements IPostOperationEnabled{
        private UUID newAcceptedTaxonNodeUuid;
        private TaxonNameEditor editor;
 public class MoveDescriptionElementsHandler extends AbstractHandler implements IPostOperationEnabled{
        private UUID newAcceptedTaxonNodeUuid;
        private TaxonNameEditor editor;
-       /* (non-Javadoc)
-        * @see org.eclipse.core.commands.IHandler#execute(org.eclipse.core.commands.ExecutionEvent)
-        */
+
        @Override
        public Object execute(ExecutionEvent event) throws ExecutionException {
 
        @Override
        public Object execute(ExecutionEvent event) throws ExecutionException {
 
@@ -123,7 +121,7 @@ public class MoveDescriptionElementsHandler extends AbstractHandler implements I
                                                event.getCommand().getName(), EditorUtil.getUndoContext(),
                                                targetTaxon.getUuid(), moveMessage, elements, false, this);
 
                                                event.getCommand().getName(), EditorUtil.getUndoContext(),
                                                targetTaxon.getUuid(), moveMessage, elements, false, this);
 
-                               EditorUtil.executeOperation(operation);
+                               AbstractUtility.executeOperation(operation);
 
                                //CdmStore.getService(ITaxonService.class).saveOrUpdate(targetTaxon);
 
 
                                //CdmStore.getService(ITaxonService.class).saveOrUpdate(targetTaxon);
 
@@ -136,9 +134,6 @@ public class MoveDescriptionElementsHandler extends AbstractHandler implements I
                return null;
        }
 
                return null;
        }
 
-       /* (non-Javadoc)
-        * @see eu.etaxonomy.taxeditor.operations.IPostOperationEnabled#postOperation(eu.etaxonomy.cdm.model.common.CdmBase)
-        */
        /** {@inheritDoc} */
        @Override
     public boolean postOperation(CdmBase objectAffectedByOperation) {
        /** {@inheritDoc} */
        @Override
     public boolean postOperation(CdmBase objectAffectedByOperation) {
@@ -173,7 +168,6 @@ public class MoveDescriptionElementsHandler extends AbstractHandler implements I
 
        @Override
        public boolean onComplete() {
 
        @Override
        public boolean onComplete() {
-               // TODO Auto-generated method stub
                return false;
        }
 
                return false;
        }