Project

General

Profile

Download (2.04 KB) Statistics
| Branch: | Tag: | Revision:
1 27b59ab1 n.hoffmann
// $Id$
2
/**
3 86d58314 n.hoffmann
 * 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 27b59ab1 n.hoffmann
11 f211dd28 n.hoffmann
package eu.etaxonomy.taxeditor.ui.section.classification;
12 27b59ab1 n.hoffmann
13
import org.eclipse.swt.SWT;
14
15
import eu.etaxonomy.cdm.api.conversation.ConversationHolder;
16 d31115e0 n.hoffmann
import eu.etaxonomy.cdm.model.taxon.Classification;
17 f211dd28 n.hoffmann
import eu.etaxonomy.taxeditor.ui.forms.AbstractCdmEntityWizardPage;
18
import eu.etaxonomy.taxeditor.ui.forms.CdmFormFactory;
19
import eu.etaxonomy.taxeditor.ui.forms.CdmFormFactory.DetailType;
20
import eu.etaxonomy.taxeditor.ui.forms.ICdmFormElement;
21 27b59ab1 n.hoffmann
22
/**
23 86d58314 n.hoffmann
 * <p>
24
 * ClassificationWizardPage class.
25
 * </p>
26
 * 
27 27b59ab1 n.hoffmann
 * @author n.hoffmann
28
 * @created 23.06.2009
29
 * @version 1.0
30
 */
31 86d58314 n.hoffmann
public class ClassificationWizardPage extends
32
		AbstractCdmEntityWizardPage<Classification> {
33
34 3be6ef3e n.hoffmann
	/**
35 86d58314 n.hoffmann
	 * <p>
36
	 * Constructor for ClassificationWizardPage.
37
	 * </p>
38
	 * 
39
	 * @param formFactory
40
	 *            a {@link eu.etaxonomy.taxeditor.ui.forms.CdmFormFactory}
41
	 *            object.
42
	 * @param conversation
43
	 *            a {@link eu.etaxonomy.cdm.api.conversation.ConversationHolder}
44
	 *            object.
45
	 * @param entity
46
	 *            a {@link eu.etaxonomy.cdm.model.taxon.TaxonomicTree} object.
47 3be6ef3e n.hoffmann
	 */
48 86d58314 n.hoffmann
	public ClassificationWizardPage(CdmFormFactory formFactory,
49
			ConversationHolder conversation, Classification entity) {
50 27b59ab1 n.hoffmann
		super(formFactory, conversation, entity);
51
		setTitle("Classification");
52
	}
53
54 86d58314 n.hoffmann
	/*
55
	 * (non-Javadoc)
56
	 * 
57
	 * @see
58
	 * eu.etaxonomy.taxeditor.forms.AbstractCdmEntityWizardPage#createElement
59
	 * (eu.etaxonomy.taxeditor.forms.ICdmFormElement)
60 27b59ab1 n.hoffmann
	 */
61 3be6ef3e n.hoffmann
	/** {@inheritDoc} */
62 27b59ab1 n.hoffmann
	@Override
63
	public ClassificationDetailElement createElement(ICdmFormElement rootElement) {
64 86d58314 n.hoffmann
		ClassificationDetailElement detailElement = (ClassificationDetailElement) formFactory
65
				.createCdmDetailElement(DetailType.CLASSIFICATION, rootElement,
66
						SWT.NULL);
67 27b59ab1 n.hoffmann
		detailElement.setEntity(getEntity());
68 86d58314 n.hoffmann
69 27b59ab1 n.hoffmann
		return detailElement;
70
	}
71
}