protected TextWithLabelElement element_text;
protected Button button;
+ //protected Button deleteButton;
protected Representation selectedRepresentation;
protected TermBase term;
combo_language.addSelectionListener(this);
addControl(formFactory.createLabel(getLayoutComposite(), ""));
-
-
- }
+ }
public List<Language> getLanguages() {
public void setTerm(
TermBase term, boolean update) {
this.term = term;
+ if (term.getRepresentations().isEmpty()){
+ //if the term has no representation at all, create a default one.
+ Representation rep = Representation.NewInstance("", "", "", PreferencesUtil.getGlobalLanguage());
+ term.addRepresentation(rep);
+ }
if (selectedRepresentation != null) {
combo_language.setTerms(getLanguages());