Project

General

Profile

« Previous | Next » 

Revision 8393634c

Added by Patrick Plitzner over 8 years ago

Delete unused method

View differences:

eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/EditorUtil.java
416 416
	    }
417 417
	}
418 418

  
419
	/**
420
	 * Iterates recursively over all originals having the given specimen as a derivate.
421
	 * If a {@link FieldUnit} is found it is returned
422
	 * @param specimen the start element for which the originals are iterated recursively
423
	 * @return the FieldUnit if found, <code>null</code> otherwise
424
	 */
425
    public static FieldUnit getFieldUnit(SpecimenOrObservationBase<?> specimen){
426
        SpecimenOrObservationBase<?> topMostDerivate = getTopMostDerivate(specimen);
427
        if(topMostDerivate instanceof FieldUnit) {
428
            return (FieldUnit) topMostDerivate;
429
        }
430
        return null;
431
    }
432

  
433 419
    /**
434 420
     * If the current selection is a single {@link TreeNode} it will be returned.
435 421
     * @param selection the selection to check

Also available in: Unified diff