2 * Copyright (C) 2009 EDIT
3 * European Distributed Institute of Taxonomy
4 * http://www.e-taxonomy.eu
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.
10 package eu
.etaxonomy
.taxeditor
.propertysheet
.type
.wizard
;
12 import org
.apache
.log4j
.Logger
;
13 import org
.eclipse
.jface
.wizard
.Wizard
;
14 import org
.eclipse
.jface
.wizard
.WizardPage
;
16 import eu
.etaxonomy
.cdm
.model
.name
.SpecimenTypeDesignation
;
17 import eu
.etaxonomy
.cdm
.model
.name
.TaxonNameBase
;
24 public class TypeDesignationWizard
extends Wizard
{
25 private static Logger logger
= Logger
26 .getLogger(TypeDesignationWizard
.class);
28 private SpecimenTypeDesignation typeDesignation
;
29 private TaxonNameBase name
;
31 private WizardPage chooseNamePage
;
34 * @param typeDesignation
36 public TypeDesignationWizard(SpecimenTypeDesignation typeDesignation
, TaxonNameBase name
) {
37 this.typeDesignation
= typeDesignation
;
42 * @see org.eclipse.jface.wizard.Wizard#addPages()
44 public void addPages() {
45 chooseNamePage
= new ChooseTypeDesignationWizardPage(typeDesignation
, name
);
46 addPage(chooseNamePage
);
50 * @see org.eclipse.jface.wizard.Wizard#performFinish()
53 public boolean performFinish() {
55 chooseNamePage
.setPageComplete(true);