Revision b9a0d300
Added by Lorna Morris over 12 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/supplemental/AnnotationElement.java | ||
---|---|---|
6 | 6 |
import org.eclipse.swt.events.SelectionListener; |
7 | 7 |
|
8 | 8 |
import eu.etaxonomy.cdm.model.common.Annotation; |
9 |
import eu.etaxonomy.cdm.model.common.AnnotationType; |
|
10 |
import eu.etaxonomy.taxeditor.ui.combo.TermComboElement; |
|
9 | 11 |
import eu.etaxonomy.taxeditor.ui.forms.AbstractFormSection; |
10 | 12 |
import eu.etaxonomy.taxeditor.ui.forms.CdmFormFactory; |
11 | 13 |
import eu.etaxonomy.taxeditor.ui.forms.ICdmFormElement; |
12 | 14 |
import eu.etaxonomy.taxeditor.ui.forms.TextWithLabelElement; |
13 |
import eu.etaxonomy.taxeditor.ui.forms.CdmFormFactory.TermComboType; |
|
14 | 15 |
import eu.etaxonomy.taxeditor.ui.section.AbstractEntityCollectionElement; |
15 |
import eu.etaxonomy.taxeditor.ui.term.AnnotationTypeComboElement; |
|
16 | 16 |
|
17 | 17 |
/** |
18 | 18 |
* <p>AnnotationElement class.</p> |
... | ... | |
23 | 23 |
public class AnnotationElement extends AbstractEntityCollectionElement<Annotation>{ |
24 | 24 |
|
25 | 25 |
private TextWithLabelElement text; |
26 |
private AnnotationTypeComboElement combo_annotationType;
|
|
26 |
private TermComboElement<AnnotationType> combo_annotationType;
|
|
27 | 27 |
|
28 | 28 |
/** |
29 | 29 |
* <p>Constructor for AnnotationElement.</p> |
... | ... | |
44 | 44 |
/** {@inheritDoc} */ |
45 | 45 |
@Override |
46 | 46 |
public void createControls(ICdmFormElement element, int style) { |
47 |
combo_annotationType = (AnnotationTypeComboElement) formFactory.createTermComboElement(TermComboType.ANNOTATIONTYPE, this, "Annotation Type", null, style);
|
|
47 |
combo_annotationType = formFactory.createTermComboElement(AnnotationType.class, this, "Annotation Type", null, style);
|
|
48 | 48 |
|
49 | 49 |
text = formFactory.createMultilineTextWithLabel(this, "Annotation", 100, style); |
50 | 50 |
} |
Also available in: Unified diff
Committing changes to definedtermeditor after merge from branch