}
if (entity instanceof TaxonNode) {
checkbox_unplaced = formFactory.createCheckbox(formElement,
- "Taxon is unplaced", unplaced, style);
+ "Taxon is unplaced", ((TaxonNode)entity).isUnplaced(), style);
}
if (!isCreateNew()){
if (entity instanceof TaxonNode) {
checkbox_excluded = formFactory.createCheckbox(formElement,
- "Taxon is excluded", excluded, style);
+ "Taxon is excluded", ((TaxonNode)entity).isExcluded(), style);
multiLanguageTextExcludedNotes = formFactory.createMultiLanguageTextElement(formElement, "Excluded Notes", ((TaxonNode)entity).getExcludedNote(), 50, style);
multiLanguageTextExcludedNotes.setEnabled(((TaxonNode) entity).isExcluded());
}
complete = !textNewTaxonName.getText().isEmpty();
}else if (eventSource == selection_Ref) {
((TaxonNode) getEntity()).setReference(selection_Ref.getEntity());
+ }else if (eventSource == selection_SecRef) {
+ ((TaxonNode) getEntity()).getTaxon().setSec(selection_SecRef.getEntity());
}else if (eventSource == microReference) {
((TaxonNode) getEntity()).setMicroReference(microReference.getText());
} else if (eventSource == textNewTaxonName) {
complete = CdmUtils.isNotBlank(textNewTaxonName.getText());
} else if (eventSource == checkbox_excluded) {
excluded = checkbox_excluded.getSelection();
- if (!isCreateNew()){
- ((TaxonNode)getEntity()).setExcluded(excluded);
- }
+ ((TaxonNode)getEntity()).setExcluded(excluded);
multiLanguageTextExcludedNotes.setEnabled(excluded);
} else if (eventSource == checkbox_unplaced) {
unplaced = checkbox_unplaced.getSelection();
- if (!isCreateNew()){
- ((TaxonNode)getEntity()).setUnplaced(unplaced);
- }
+ ((TaxonNode)getEntity()).setUnplaced(unplaced);
} else if (eventSource == checkbox_openInEditor) {
setOpenInEditor(checkbox_openInEditor.getSelection());
} else if (eventSource == selectionNodeAgentRelation){