3 * Copyright (C) 2007 EDIT
4 * European Distributed Institute of Taxonomy
5 * http://www.e-taxonomy.eu
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.
11 package eu
.etaxonomy
.taxeditor
.section
.name
;
13 import org
.apache
.log4j
.Logger
;
14 import org
.eclipse
.swt
.SWT
;
16 import eu
.etaxonomy
.cdm
.api
.conversation
.ConversationHolder
;
17 import eu
.etaxonomy
.cdm
.model
.name
.NonViralName
;
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
;
26 * @created Jun 1, 2010
29 public class NonViralNameWizardPage
extends AbstractCdmEntityWizardPage
<NonViralName
> {
32 private static final Logger logger
= Logger
33 .getLogger(NonViralNameWizardPage
.class);
34 private NonViralNameDetailElement nameElement
;
36 public NonViralNameWizardPage(CdmFormFactory formFactory
, ConversationHolder conversation
,
37 NonViralName entity
) {
38 super(formFactory
, conversation
, entity
);
43 public AbstractCdmDetailElement
createElement(ICdmFormElement rootElement
) {
44 nameElement
= (NonViralNameDetailElement
) formFactory
.createCdmDetailElement(DetailType
.NONVIRALNAME
, rootElement
, SWT
.NULL
);
45 nameElement
.setEntity(entity
);
50 public void dispose() {
51 nameElement
.removeElements();