import org.eclipse.swt.events.SelectionListener;
import eu.etaxonomy.cdm.model.agent.AgentBase;
-import eu.etaxonomy.cdm.model.term.TermType;
import eu.etaxonomy.cdm.model.media.Rights;
import eu.etaxonomy.cdm.model.media.RightsType;
+import eu.etaxonomy.cdm.model.term.TermType;
import eu.etaxonomy.taxeditor.ui.combo.term.TermComboElement;
import eu.etaxonomy.taxeditor.ui.element.AbstractFormSection;
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
import eu.etaxonomy.taxeditor.ui.element.TextWithLabelElement;
+import eu.etaxonomy.taxeditor.ui.element.UriWithLabelElement;
import eu.etaxonomy.taxeditor.ui.section.AbstractEntityCollectionElement;
import eu.etaxonomy.taxeditor.ui.selection.EntitySelectionElement;
private TermComboElement<RightsType> combo_rightsType;
private EntitySelectionElement<AgentBase> selection_agent;
private TextWithLabelElement text;
+ private TextWithLabelElement abbrev;
+ private UriWithLabelElement uri;
/**
* <p>
null, EntitySelectionElement.ALL, style);
text = formFactory.createMultiLineTextWithLabel(this, "Text", 100,
style);
+ abbrev = formFactory.createTextWithLabelElement(element, "Abbrev. Text", null, style);
+
+ uri = formFactory.createUriWithLabelElement(element, "Uri", null, style);
+
}
/*
combo_rightsType.setSelection(element.getType());
selection_agent.setEntity(element.getAgent());
text.setText(element.getText());
+ abbrev.setText(element.getAbbreviatedText());
+ uri.setParsedText(element.getUri());
}
/*
entity.setAgent(selection_agent.getSelection());
} else if (eventSource == text) {
entity.setText(text.getText());
- }
+ }else if (eventSource == abbrev) {
+ entity.setAbbreviatedText(abbrev.getText());
+ }else if (eventSource == uri) {
+ entity.setUri(uri.parseText());
+ }
+
}
}