Revision b9a0d300
Added by Lorna Morris over 12 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/description/ScopeElement.java | ||
---|---|---|
10 | 10 |
|
11 | 11 |
package eu.etaxonomy.taxeditor.ui.section.description; |
12 | 12 |
|
13 |
import org.apache.log4j.Logger; |
|
14 | 13 |
import org.eclipse.swt.events.SelectionListener; |
15 | 14 |
|
16 | 15 |
import eu.etaxonomy.cdm.model.description.Scope; |
16 |
import eu.etaxonomy.taxeditor.ui.combo.TermComboElement; |
|
17 | 17 |
import eu.etaxonomy.taxeditor.ui.forms.AbstractFormSection; |
18 | 18 |
import eu.etaxonomy.taxeditor.ui.forms.CdmFormFactory; |
19 | 19 |
import eu.etaxonomy.taxeditor.ui.forms.ICdmFormElement; |
20 |
import eu.etaxonomy.taxeditor.ui.forms.CdmFormFactory.TermComboType; |
|
21 | 20 |
import eu.etaxonomy.taxeditor.ui.section.AbstractEntityCollectionElement; |
22 |
import eu.etaxonomy.taxeditor.ui.term.ScopeComboElement; |
|
23 | 21 |
|
24 | 22 |
/** |
25 | 23 |
* <p>ScopeElement class.</p> |
... | ... | |
30 | 28 |
*/ |
31 | 29 |
public class ScopeElement extends AbstractEntityCollectionElement<Scope> { |
32 | 30 |
|
33 |
private static final Logger logger = Logger.getLogger(ScopeElement.class); |
|
34 |
private ScopeComboElement combo_scope; |
|
31 |
private TermComboElement<Scope> combo_scope; |
|
35 | 32 |
|
36 | 33 |
/** |
37 | 34 |
* <p>Constructor for ScopeElement.</p> |
... | ... | |
58 | 55 |
/** {@inheritDoc} */ |
59 | 56 |
@Override |
60 | 57 |
public void createControls(ICdmFormElement element, int style) { |
61 |
combo_scope = (ScopeComboElement) formFactory.createTermComboElement(TermComboType.SCOPE, element, "Scope", null, style);
|
|
58 |
combo_scope = formFactory.createTermComboElement(Scope.class, element, "Scope", null, style);
|
|
62 | 59 |
} |
63 | 60 |
|
64 | 61 |
/** {@inheritDoc} */ |
Also available in: Unified diff
Committing changes to definedtermeditor after merge from branch