1
|
/**
|
2
|
* Copyright (C) 2007 EDIT
|
3
|
* European Distributed Institute of Taxonomy
|
4
|
* http://www.e-taxonomy.eu
|
5
|
*
|
6
|
* The contents of this file are subject to the Mozilla Public License Version 1.1
|
7
|
* See LICENSE.TXT at the top of this package for the full license terms.
|
8
|
*/
|
9
|
|
10
|
package eu.etaxonomy.taxeditor.ui.section.taxon;
|
11
|
|
12
|
import org.eclipse.swt.SWT;
|
13
|
|
14
|
import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
|
15
|
import eu.etaxonomy.cdm.model.taxon.TaxonBase;
|
16
|
import eu.etaxonomy.taxeditor.ui.element.AbstractCdmEntityWizardPage;
|
17
|
import eu.etaxonomy.taxeditor.ui.element.CdmFormFactory;
|
18
|
import eu.etaxonomy.taxeditor.ui.element.ICdmFormElement;
|
19
|
import eu.etaxonomy.taxeditor.ui.section.AbstractCdmDetailElement;
|
20
|
|
21
|
/**
|
22
|
*
|
23
|
* @author pplitzner
|
24
|
* @date Jan 18, 2016
|
25
|
*
|
26
|
*/
|
27
|
public class TaxonWizardPage extends AbstractCdmEntityWizardPage<TaxonBase> {
|
28
|
|
29
|
public TaxonWizardPage(CdmFormFactory formFactory, ConversationHolder conversation,
|
30
|
TaxonBase entity) {
|
31
|
super(formFactory, conversation, entity);
|
32
|
setTitle("Taxon");
|
33
|
}
|
34
|
|
35
|
|
36
|
/** {@inheritDoc} */
|
37
|
@Override
|
38
|
public AbstractCdmDetailElement<TaxonBase> createElement(ICdmFormElement rootElement) {
|
39
|
TaxonBaseDetailElement taxonBaseDetailElement = formFactory.createTaxonBaseDetailElement(rootElement, SWT.NULL);
|
40
|
taxonBaseDetailElement.setEntity(entity);
|
41
|
return taxonBaseDetailElement;
|
42
|
}
|
43
|
|
44
|
@Override
|
45
|
public boolean isPageComplete() {
|
46
|
return true;
|
47
|
}
|
48
|
}
|