class="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNodePropertyTester"
id="eu.etaxonomy.taxeditor.navigation.navigator.navigatorPropertyTester"
namespace="eu.etaxonomy.taxeditor.navigation.navigator.navigatorPropertyTester"
- properties="hasSynonyms,isClassification,isUnplaced,isExcluded,noClassificationExists"
+ properties="hasSynonyms,isClassification,isUnplaced,isExcluded,noClassificationExists,isNotClassification"
type="java.lang.Object">
</propertyTester>
<test
property="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNodePropertyTester.isClassification">
</test>
+ </definition>
+ <definition
+ id="isNotClassification">
+ <test
+ property="eu.etaxonomy.taxeditor.navigation.navigator.TaxonNodePropertyTester.isNotClassification">
+ </test>
</definition>
<definition
id="isUnplaced">
private static final Object HAS_SYNONYMS = "hasSynonyms"; //$NON-NLS-1$
private static final Object HAS_TAXA = "hasTaxa"; //$NON-NLS-1$
private static final Object IS_CLASSIFICATION = "isClassification"; //$NON-NLS-1$
- private static final Object IS_UNPLACED = "isUnplaced";
- private static final Object IS_EXCLUDED = "isExcluded";
+ private static final Object IS_NOT_CLASSIFICATION = "isNotClassification"; //$NON-NLS-1$
+ private static final Object IS_UNPLACED = "isUnplaced"; //$NON-NLS-1$
+ private static final Object IS_EXCLUDED = "isExcluded"; //$NON-NLS-1$
private static final Object NO_CLASSIFICATION_EXIST = "noClassificationExist";
/** {@inheritDoc} */
@Override
TaxonNodeDto node = (TaxonNodeDto) receiver;
return node.getTaxonUuid() == null;
}
+ if (receiver instanceof TaxonNodeDto && IS_NOT_CLASSIFICATION.equals(property)) {
+ TaxonNodeDto node = (TaxonNodeDto) receiver;
+ return node.getTaxonUuid() != null;
+ }
if (receiver instanceof TaxonNodeDto && IS_UNPLACED.equals(property)) {
TaxonNodeDto node = (TaxonNodeDto) receiver;
- return node.isUnplaced();
+ return node.isUnplaced() && node.getTaxonUuid() != null;
}
if (receiver instanceof TaxonNodeDto && IS_EXCLUDED.equals(property)) {
TaxonNodeDto node = (TaxonNodeDto) receiver;
- return node.isExcluded();
+ return node.isExcluded() && node.getTaxonUuid() != null;
}
if (NO_CLASSIFICATION_EXIST.equals(property)) {
return 0 == CdmStore.getService(IClassificationService.class).count(Classification.class);