private TermComboElement<Language> combo_language;
private EntitySelectionElement<NamedArea> selection_namedArea;
private TextWithLabelElement commonName;
+ private TextWithLabelElement transliteration;
/**
* <p>Constructor for CommonNameDetailElement.</p>
CommonTaxonName entity, int style) {
commonName = formFactory.createTextWithLabelElement(this, "Common Name", entity.getName(), SWT.WRAP);
+ transliteration = formFactory.createTextWithLabelElement(this, "Transliteration", entity.getTransliteration(), SWT.WRAP);
// combo_language = formFactory.createDefinedTermComboElement(TermType.Language, this, "Language", entity.getLanguage(), style);
List<UUID> uuidList = PreferencesUtil.createUUIDListFromStringPref(PreferencePredicate.CommonNameLanguages.getKey(), false);
getEntity().setArea(selection_namedArea.getEntity());
}else if(eventSource == commonName){
getEntity().setName(commonName.getText());
- }
+ }else if(eventSource == transliteration){
+ getEntity().setTransliteration(transliteration.getText());
+ }
}
@Override
combo_language.setSelection(getEntity().getLanguage());
selection_namedArea.setEntity(getEntity().getArea());
commonName.setText(getEntity().getName());
+ transliteration.setText(getEntity().getTransliteration());
}
}
}
\ No newline at end of file