Revision 49a64920
Added by Cherian Mathew almost 11 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/description/ScopeElement.java | ||
---|---|---|
12 | 12 |
|
13 | 13 |
import org.eclipse.swt.events.SelectionListener; |
14 | 14 |
|
15 |
import eu.etaxonomy.cdm.model.description.Scope;
|
|
15 |
import eu.etaxonomy.cdm.model.common.DefinedTerm;
|
|
16 | 16 |
import eu.etaxonomy.taxeditor.ui.combo.TermComboElement; |
17 | 17 |
import eu.etaxonomy.taxeditor.ui.element.AbstractFormSection; |
18 | 18 |
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory; |
... | ... | |
26 | 26 |
* @created Mar 18, 2010 |
27 | 27 |
* @version 1.0 |
28 | 28 |
*/ |
29 |
public class ScopeElement extends AbstractEntityCollectionElement<Scope> {
|
|
29 |
public class ScopeElement extends AbstractEntityCollectionElement<DefinedTerm> {
|
|
30 | 30 |
|
31 |
private TermComboElement<Scope> combo_scope;
|
|
31 |
private TermComboElement<DefinedTerm> combo_scope;
|
|
32 | 32 |
|
33 | 33 |
/** |
34 | 34 |
* <p>Constructor for ScopeElement.</p> |
... | ... | |
40 | 40 |
* @param style a int. |
41 | 41 |
*/ |
42 | 42 |
public ScopeElement(CdmFormFactory cdmFormFactory, |
43 |
AbstractFormSection section, Scope element,
|
|
43 |
AbstractFormSection section, DefinedTerm element,
|
|
44 | 44 |
SelectionListener removeListener, int style) { |
45 | 45 |
super(cdmFormFactory, section, element, removeListener, null, style); |
46 | 46 |
} |
47 | 47 |
|
48 | 48 |
/** {@inheritDoc} */ |
49 | 49 |
@Override |
50 |
public void setEntity(Scope entity) {
|
|
50 |
public void setEntity(DefinedTerm entity) {
|
|
51 | 51 |
this.entity = entity; |
52 | 52 |
combo_scope.setSelection(entity); |
53 | 53 |
} |
... | ... | |
55 | 55 |
/** {@inheritDoc} */ |
56 | 56 |
@Override |
57 | 57 |
public void createControls(ICdmFormElement element, int style) { |
58 |
combo_scope = formFactory.createTermComboElement(Scope.class, element, "Scope", null, style);
|
|
58 |
combo_scope = formFactory.createTermComboElement(DefinedTerm.class, element, "Scope", null, style);
|
|
59 | 59 |
} |
60 | 60 |
|
61 | 61 |
/** {@inheritDoc} */ |
Also available in: Unified diff
Aligning Editor with 3.3 model changes. First phase commit which updates only the classes.
Branch not compilable at the moment.