Revision b0ce5b17
Added by Patrick Plitzner over 10 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/section/name/NonViralNameWizardPage.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.name; |
12 | 12 |
|
13 |
import org.eclipse.swt.SWT; |
|
14 |
|
|
15 | 13 |
import eu.etaxonomy.cdm.api.conversation.ConversationHolder; |
16 | 14 |
import eu.etaxonomy.cdm.model.name.NonViralName; |
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 |
|
... | ... | |
43 | 40 |
super(formFactory, conversation, entity); |
44 | 41 |
setTitle("Name"); |
45 | 42 |
} |
46 |
|
|
43 |
|
|
47 | 44 |
/** {@inheritDoc} */ |
48 | 45 |
@Override |
49 | 46 |
public AbstractCdmDetailElement<NonViralName> createElement(ICdmFormElement rootElement) { |
50 |
nameElement = (NonViralNameDetailElement) formFactory.createCdmDetailElement(DetailType.NONVIRALNAME, rootElement, SWT.NULL);
|
|
47 |
nameElement = formFactory.createNonViralNameDetailElement(rootElement);
|
|
51 | 48 |
nameElement.setEntity(entity); |
52 | 49 |
return nameElement; |
53 | 50 |
} |
54 |
|
|
51 |
|
|
55 | 52 |
/** {@inheritDoc} */ |
56 | 53 |
@Override |
57 | 54 |
public void dispose() { |
Also available in: Unified diff
merged trunk into branch