Project

General

Profile

Revision 7070571d

ID7070571d627adc295080a5da087300a30bef9b67
Parent b7299e98
Child 26c22583

Added by Katja Luther 9 months 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

Add picture from clipboard (Maximum size: 40 MB)