if (entity instanceof TaxonNode) {
checkbox_unplaced = formFactory.createCheckbox(formElement,
"Taxon is unplaced", ((TaxonNode) entity).isUnplaced(), style);
- checkbox_excluded = formFactory.createCheckbox(formElement,
- "Taxon is excluded", ((TaxonNode) entity).isExcluded(), style);
- multiLanguageTextExcludedNotes = formFactory.createMultiLanguageTextElement(formElement, "Excluded Notes", ((TaxonNode)entity).getExcludedNote(), 50, style);
- multiLanguageTextExcludedNotes.setEnabled(((TaxonNode) entity).isExcluded());
}
if (!isCreateNew()){
checkbox_openInEditor = formFactory.createCheckbox(formElement,
"Open in Editor", true, style);
setOpenInEditor(true);
+
+ if (entity instanceof TaxonNode) {
+ checkbox_excluded = formFactory.createCheckbox(formElement,
+ "Taxon is excluded", ((TaxonNode) entity).isExcluded(), style);
+ multiLanguageTextExcludedNotes = formFactory.createMultiLanguageTextElement(formElement, "Excluded Notes", ((TaxonNode)entity).getExcludedNote(), 50, style);
+ multiLanguageTextExcludedNotes.setEnabled(((TaxonNode) entity).isExcluded());
+ }
}
private void preFillTaxonName() {