element_question = formFactory.createKeyStatementElement(
formElement, "Question", parent.getQuestion(), 50, style);
+
+ selection_feature = (FeatureSelectionElement) formFactory
+ .createSelectionElement(SelectionType.FEATURE,
+ getConversationHolder(), formElement, "Feature",
+ parent.getFeature(),
+ FeatureSelectionElement.DEFAULT, style);
}
element_statement = formFactory.createKeyStatementElement(formElement,
"Statement", entity.getStatement(), 50, style);
- selection_feature = (FeatureSelectionElement) formFactory
- .createSelectionElement(SelectionType.FEATURE,
- getConversationHolder(), formElement, "Feature",
- entity.getFeature(), FeatureSelectionElement.DEFAULT,
- style);
-
if (entity.isLeaf()) {
selection_taxon = (TaxonSelectionElement) formFactory
.createSelectionElement(SelectionType.TAXON,
} else if (eventSource == element_statement) {
getEntity().setStatement(element_statement.getKeyStatement());
} else if (eventSource == selection_feature) {
- getEntity().setFeature(selection_feature.getEntity());
+ getEntity().getParent().setFeature(selection_feature.getEntity());
} else if (eventSource == selection_taxon) {
getEntity().setTaxon(selection_taxon.getEntity());
} else if (eventSource == selection_subkey) {