Revision 8481f952
Added by Andreas Müller almost 4 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/name/handler/NameEditorMenuPropertyTester.java | ||
---|---|---|
26 | 26 |
* |
27 | 27 |
* @author n.hoffmann |
28 | 28 |
* @created Jun 22, 2010 |
29 |
* @version 1.0 |
|
30 | 29 |
*/ |
31 | 30 |
public class NameEditorMenuPropertyTester extends PropertyTester { |
32 | 31 |
|
... | ... | |
53 | 52 |
public NameEditorMenuPropertyTester() { |
54 | 53 |
} |
55 | 54 |
|
56 |
/** {@inheritDoc} */ |
|
57 | 55 |
@Override |
58 | 56 |
public boolean test(Object receiver, String property, Object[] args, |
59 | 57 |
Object expectedValue) { |
... | ... | |
143 | 141 |
|
144 | 142 |
public static boolean isSynonymOrTaxonInHomotypicalGroupWithMoreSynonyms(Object selectedElement) { |
145 | 143 |
if (isSynonym(selectedElement) || isAccepted(selectedElement)){ |
146 |
TaxonBase synonym = (TaxonBase) selectedElement;
|
|
144 |
TaxonBase<?> synonym = (TaxonBase<?>) selectedElement;
|
|
147 | 145 |
return synonym.getHomotypicGroup().getTypifiedNames().size()>1; |
148 | 146 |
} |
149 | 147 |
return false; |
Also available in: Unified diff
cleanup