4 package eu
.etaxonomy
.taxeditor
.navigation
.navigator
;
6 import org
.eclipse
.core
.expressions
.PropertyTester
;
8 import eu
.etaxonomy
.cdm
.model
.taxon
.Taxon
;
9 import eu
.etaxonomy
.cdm
.model
.taxon
.TaxonNode
;
11 public class TaxonNodePropertyTester
extends PropertyTester
{
13 private static final Object HAS_SYNONYMS
= "hasSynonyms";
15 public boolean test(Object receiver
, String property
, Object
[] args
,
16 Object expectedValue
) {
17 if (receiver
instanceof TaxonNode
&& HAS_SYNONYMS
.equals(property
)) {
18 Taxon taxon
= ((TaxonNode
) receiver
).getTaxon();
19 return taxon
.hasSynonyms();