From: Patric Plitzner
Date: Mon, 18 Nov 2013 09:16:03 +0000 (+0000)
Subject: - added supportsCommonTaxonName checkbox to FeatureDetailElement (#3207)
X-Git-Tag: 3.6.0~871
X-Git-Url: https://dev.e-taxonomy.eu/gitweb/taxeditor.git/commitdiff_plain/3cd525e4c32166277d632569bcb47298bd616a31
- added supportsCommonTaxonName checkbox to FeatureDetailElement (#3207)
---
diff --git a/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/vocabulary/FeatureDetailElement.java b/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/vocabulary/FeatureDetailElement.java
index ee5f287bd..441cd85b2 100644
--- a/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/vocabulary/FeatureDetailElement.java
+++ b/eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/vocabulary/FeatureDetailElement.java
@@ -33,7 +33,9 @@ public class FeatureDetailElement extends DefinedTermDetailElement {
private CheckboxElement supportsCategoricalData;
- /**
+ private CheckboxElement supportsCommonTaxonName;
+
+ /**
* @param formFactory
* @param formElement
*/
@@ -54,6 +56,7 @@ public class FeatureDetailElement extends DefinedTermDetailElement {
supportsIndividualAssociation = formFactory.createCheckbox(formElement, "Supports Individual Association", entity.isSupportsIndividualAssociation(), style);
supportsTaxonInteraction = formFactory.createCheckbox(formElement, "Supports Taxon Interaction", entity.isSupportsTaxonInteraction(), style);
supportsCategoricalData = formFactory.createCheckbox(formElement, "Supports Categorical Data", entity.isSupportsCategoricalData(), style);
+ supportsCommonTaxonName = formFactory.createCheckbox(formElement, "Supports Common Taxon Name", entity.isSupportsCommonTaxonName(), style);
}
/* (non-Javadoc)
@@ -80,6 +83,9 @@ public class FeatureDetailElement extends DefinedTermDetailElement {
else if(eventSource == supportsCategoricalData){
getEntity().setSupportsCategoricalData(supportsCategoricalData.getSelection());
}
+ else if(eventSource == supportsCommonTaxonName){
+ getEntity().setSupportsCommonTaxonName(supportsCommonTaxonName.getSelection());
+ }
}
}