1
|
// $Id$
|
2
|
/**
|
3
|
* Copyright (C) 2007 EDIT
|
4
|
* European Distributed Institute of Taxonomy
|
5
|
* http://www.e-taxonomy.eu
|
6
|
*
|
7
|
* The contents of this file are subject to the Mozilla Public License Version 1.1
|
8
|
* See LICENSE.TXT at the top of this package for the full license terms.
|
9
|
*/
|
10
|
|
11
|
package eu.etaxonomy.taxeditor.section.occurrence;
|
12
|
|
13
|
import org.apache.log4j.Logger;
|
14
|
import org.eclipse.swt.SWT;
|
15
|
|
16
|
import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
|
17
|
import eu.etaxonomy.cdm.model.occurrence.DerivedUnitBase;
|
18
|
import eu.etaxonomy.taxeditor.forms.AbstractCdmEntityWizardPage;
|
19
|
import eu.etaxonomy.taxeditor.forms.CdmFormFactory;
|
20
|
import eu.etaxonomy.taxeditor.forms.ICdmFormElement;
|
21
|
import eu.etaxonomy.taxeditor.forms.CdmFormFactory.DetailType;
|
22
|
import eu.etaxonomy.taxeditor.section.AbstractCdmDetailElement;
|
23
|
|
24
|
/**
|
25
|
* <p>DerivedUnitFacadeWizardPage class.</p>
|
26
|
*
|
27
|
* @author n.hoffmann
|
28
|
* @created Jun 16, 2010
|
29
|
* @version 1.0
|
30
|
*/
|
31
|
public class DerivedUnitFacadeWizardPage extends AbstractCdmEntityWizardPage<DerivedUnitBase> {
|
32
|
|
33
|
|
34
|
private static final Logger logger = Logger
|
35
|
.getLogger(DerivedUnitFacadeWizardPage.class);
|
36
|
|
37
|
|
38
|
/**
|
39
|
* <p>Constructor for DerivedUnitFacadeWizardPage.</p>
|
40
|
*
|
41
|
* @param formFactory a {@link eu.etaxonomy.taxeditor.forms.CdmFormFactory} object.
|
42
|
* @param conversation a {@link eu.etaxonomy.cdm.api.conversation.ConversationHolder} object.
|
43
|
* @param entity a {@link eu.etaxonomy.cdm.model.occurrence.DerivedUnitBase} object.
|
44
|
*/
|
45
|
public DerivedUnitFacadeWizardPage(CdmFormFactory formFactory, ConversationHolder conversation, DerivedUnitBase entity) {
|
46
|
super(formFactory, conversation, entity);
|
47
|
setTitle("Derived Unit");
|
48
|
}
|
49
|
|
50
|
/* (non-Javadoc)
|
51
|
* @see eu.etaxonomy.taxeditor.forms.AbstractCdmEntityWizardPage#createElement(eu.etaxonomy.taxeditor.forms.ICdmFormElement)
|
52
|
*/
|
53
|
/** {@inheritDoc} */
|
54
|
@Override
|
55
|
public AbstractCdmDetailElement createElement(ICdmFormElement rootElement) {
|
56
|
DerivedUnitFacadeDetailElement derivedUnitFacadeDetailElement = (DerivedUnitFacadeDetailElement) formFactory.createCdmDetailElement(DetailType.DERIVED_UNIT_FACADE, rootElement, SWT.NULL);
|
57
|
derivedUnitFacadeDetailElement.setEntity(entity);
|
58
|
return derivedUnitFacadeDetailElement;
|
59
|
}
|
60
|
}
|