- removed debug sysos
[taxeditor.git] / eu.etaxonomy.taxeditor.editor / src / main / java / eu / etaxonomy / taxeditor / editor / name / handler / NameEditorMenuPropertyTester.java
index 6a6b02d78322af9444edf4069af0a2f00b854ed4..73c2f94d0eeb09e1a0c80aa04ed91d2a75adbd4c 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.
 */
@@ -35,7 +35,7 @@ public class NameEditorMenuPropertyTester extends org.eclipse.core.expressions.P
        private static final String CONCEPT = "isConceptRelation";
        private static final String EMPTY_NAMES = "hasEmptyNames";
        private static final String ACCEPTED_AND_NO_HOMOTYPIC_SYNONYMS = "isAcceptedAndHasNoHomotypicSynonyms";
-       
+
        /**
         * <p>Constructor for NameEditorMenuPropertyTester.</p>
         */
@@ -46,22 +46,20 @@ public class NameEditorMenuPropertyTester extends org.eclipse.core.expressions.P
         * @see org.eclipse.core.expressions.IPropertyTester#test(java.lang.Object, java.lang.String, java.lang.Object[], java.lang.Object)
         */
        /** {@inheritDoc} */
-       public boolean test(Object receiver, String property, Object[] args,
+       @Override
+    public boolean test(Object receiver, String property, Object[] args,
                        Object expectedValue) {
-               
+
                if(receiver instanceof IStructuredSelection){
-                       
+
                        IStructuredSelection selection = (IStructuredSelection) receiver;
-                       
+
                        Object selectedElement = selection.getFirstElement();
-                       
-                       System.out.println(selectedElement);
-                       System.out.println(property);
+
                        if(ACCEPTED.equals(property)){
                                return isAccepted(selectedElement);
                        }
                        else if(SYNONYM.equals(property)){
-                               System.out.println(isSynonym(selectedElement));
                                return isSynonym(selectedElement);
                        }
                        else if(MISAPPLICATION.equals(property)){
@@ -80,9 +78,9 @@ public class NameEditorMenuPropertyTester extends org.eclipse.core.expressions.P
                                return isAcceptedAndHasNoHomotypicSynonyms(selectedElement);
                        }
                }
-               
+
                return false;
-               
+
        }
 
        private boolean isAcceptedAndHasNoHomotypicSynonyms(Object selectedElement) {
@@ -121,7 +119,6 @@ public class NameEditorMenuPropertyTester extends org.eclipse.core.expressions.P
        }
 
        private boolean isSynonym(Object selectedElement) {
-               System.out.println("isSynonym...." + selectedElement);
                return (selectedElement instanceof Synonym) ? true : false;
        }