Remove/Refactor System.out statements
[taxeditor.git] / eu.etaxonomy.taxeditor.editor / src / main / java / eu / etaxonomy / taxeditor / editor / view / descriptive / DescriptionElementDropAdapter.java
index e7d7f2907df81a1ffe7a8f96baa5cbab9fbf8fbb..465e3f0c085719b9e0fee56151fbb3facbbf10a9 100644 (file)
@@ -1,9 +1,9 @@
 // $Id$
 /**
 * Copyright (C) 2007 EDIT
-* European Distributed Institute of Taxonomy 
+* European Distributed Institute of Taxonomy
 * http://www.e-taxonomy.eu
-* 
+*
 * The contents of this file are subject to the Mozilla Public License Version 1.1
 * See LICENSE.TXT at the top of this package for the full license terms.
 */
@@ -46,14 +46,14 @@ public class DescriptionElementDropAdapter extends ViewerDropAdapter {
        public boolean performDrop(Object data) {
                TaxonDescription target = (TaxonDescription) getCurrentTarget();
                Object[] droppedElements = (Object[]) data;
-               
+
                Collection<DescriptionElementBase> descriptionElements = new ArrayList<DescriptionElementBase>();
-               
+
                boolean isCopy = getCurrentOperation() == DND.DROP_COPY ? true : false;
-               
+
                // cannot drop a feature node onto itself
                if (droppedElements != null){
-                       for (Object droppedElement : droppedElements) {                 
+                       for (Object droppedElement : droppedElements) {
                                if (droppedElement == null){
                                        MessagingUtils.warningDialog("Operation not supported yet", this, "We are currently unable to drag and drop a newly created element. Please save the editor to make this work.");
                                        return false;
@@ -62,24 +62,24 @@ public class DescriptionElementDropAdapter extends ViewerDropAdapter {
                                        return false;
                                }else{
                                        DescriptionElementBase descriptionElement = (DescriptionElementBase) droppedElement;
-                                       
+
                                        if (descriptionElement.getInDescription().equals(target)) {
                                                return false;
                                        }
-                                       
+
                                        descriptionElements.add(descriptionElement);
-                               }                       
+                               }
                        }
-                       
+
                        AbstractPostOperation operation = new MoveDescriptionElementsOperation("Move Descriptions", EditorUtil.getUndoContext(), target, descriptionElements, isCopy, null);
-                       
+
                        EditorUtil.executeOperation(operation);
                        return true;
                }
                MessagingUtils.warningDialog("Operation not supported yet", this, "We are unable to drag and drop empty descriptions");
-       
+
                return false;
-               
+
        }
 
        /* (non-Javadoc)
@@ -90,7 +90,6 @@ public class DescriptionElementDropAdapter extends ViewerDropAdapter {
                        TransferData transferData) {
                boolean transferDataIsSupported = DescriptionElementTransfer.getInstance().isSupportedType(
                                transferData);
-               System.out.println(target);
                return target instanceof TaxonDescription && transferDataIsSupported;
        }