Revision 139902da
Added by Patrick Plitzner almost 11 years ago
- completely removed DetailType enum and all its uses
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/occurrence/GeneralWizardPage.java | ||
---|---|---|
1 | 1 |
// $Id$ |
2 | 2 |
/** |
3 | 3 |
* Copyright (C) 2007 EDIT |
4 |
* European Distributed Institute of Taxonomy
|
|
4 |
* European Distributed Institute of Taxonomy |
|
5 | 5 |
* http://www.e-taxonomy.eu |
6 |
*
|
|
6 |
* |
|
7 | 7 |
* The contents of this file are subject to the Mozilla Public License Version 1.1 |
8 | 8 |
* See LICENSE.TXT at the top of this package for the full license terms. |
9 | 9 |
*/ |
10 | 10 |
|
11 | 11 |
package eu.etaxonomy.taxeditor.ui.section.occurrence; |
12 | 12 |
|
13 |
import org.eclipse.swt.SWT; |
|
14 |
|
|
15 | 13 |
import eu.etaxonomy.cdm.api.conversation.ConversationHolder; |
16 | 14 |
import eu.etaxonomy.cdm.api.facade.DerivedUnitFacade; |
17 | 15 |
import eu.etaxonomy.taxeditor.ui.element.AbstractCdmEntityWizardPage; |
18 | 16 |
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory; |
19 |
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory.DetailType; |
|
20 | 17 |
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement; |
21 | 18 |
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement; |
22 | 19 |
|
... | ... | |
45 | 42 |
protected void checkComplete() { |
46 | 43 |
setPageComplete(true); |
47 | 44 |
} |
48 |
|
|
45 |
|
|
49 | 46 |
/* (non-Javadoc) |
50 | 47 |
* @see eu.etaxonomy.taxeditor.forms.AbstractCdmEntityWizardPage#createElement(eu.etaxonomy.taxeditor.forms.ICdmFormElement) |
51 | 48 |
*/ |
52 | 49 |
@Override |
53 | 50 |
public AbstractCdmDetailElement<DerivedUnitFacade> createElement(ICdmFormElement rootElement) { |
54 |
GeneralDetailElement detailElement = (GeneralDetailElement) formFactory.createCdmDetailElement(DetailType.DERIVED_UNIT_GENERAL, rootElement, SWT.NULL);
|
|
51 |
GeneralDetailElement detailElement = formFactory.createGeneralDetailElement(rootElement);
|
|
55 | 52 |
detailElement.setEntity(getEntity()); |
56 | 53 |
checkComplete(); |
57 | 54 |
return detailElement; |
Also available in: Unified diff