Revision 139902da
Added by Patrick Plitzner over 10 years ago
- completely removed DetailType enum and all its uses
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/newWizard/PolytomousKeyWizardPage.java | ||
---|---|---|
1 | 1 |
/** |
2 |
*
|
|
2 |
* |
|
3 | 3 |
*/ |
4 | 4 |
package eu.etaxonomy.taxeditor.newWizard; |
5 | 5 |
|
6 |
import org.eclipse.swt.SWT; |
|
7 |
|
|
8 | 6 |
import eu.etaxonomy.cdm.api.conversation.ConversationHolder; |
9 | 7 |
import eu.etaxonomy.cdm.model.description.PolytomousKey; |
10 | 8 |
import eu.etaxonomy.taxeditor.ui.element.AbstractCdmEntityWizardPage; |
11 | 9 |
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory; |
12 | 10 |
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement; |
13 |
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory.DetailType; |
|
14 | 11 |
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement; |
15 | 12 |
import eu.etaxonomy.taxeditor.ui.section.key.PolytomousKeyDetailElement; |
16 | 13 |
|
... | ... | |
27 | 24 |
|
28 | 25 |
@Override |
29 | 26 |
public AbstractCdmDetailElement createElement(ICdmFormElement rootElement) { |
30 |
PolytomousKeyDetailElement element = (PolytomousKeyDetailElement) formFactory.createCdmDetailElement(DetailType.POLYTOMOUS_KEY, rootElement, SWT.NULL);
|
|
27 |
PolytomousKeyDetailElement element = formFactory.createPolytomousKeyDetailElement(rootElement);
|
|
31 | 28 |
element.setEntity(entity); |
32 | 29 |
setPageComplete(true); |
33 | 30 |
return element; |
34 | 31 |
} |
35 |
|
|
32 |
|
|
36 | 33 |
public String getPolytomousKeyName() { |
37 | 34 |
return ((PolytomousKeyDetailElement) getDetailElement()).getText(); |
38 | 35 |
} |
Also available in: Unified diff