Project

General

Profile

« Previous | Next » 

Revision 7070571d

Added by Katja Luther over 5 years ago

ref #7761: adapt property tester

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/name/handler/NameEditorMenuPropertyTester.java
209 209
    }
210 210

  
211 211
	public static boolean isAccepted(Object selectedElement) {
212
		return (selectedElement instanceof Taxon  && ! ((Taxon) selectedElement).isMisapplication() && ! ((Taxon) selectedElement).isProparteSynonym()) ? true : false;
212
	    return (selectedElement instanceof Taxon) ? true : false;
213 213
	}
214 214

  
215 215
	public static boolean isOrphaned(Object selectedElement) {
......
232 232
        }
233 233
        return false;
234 234
    }
235

  
236
    /**
237
     * @param selectedElement
238
     * @return
239
     */
240
    public static boolean isNotInvalidDesignation(Object selectedElement) {
241
        if((selectedElement instanceof Taxon) && !((Taxon) selectedElement).isInvalidDesignation()){
242
            return true;
243
        }
244
        return false;
245
    }
235 246
}

Also available in: Unified diff