1bd5f489303c33d1c9f798c0de07431b8a109df8
[taxeditor.git] / eclipseprojects / eu.etaxonomy.taxeditor / src / eu / etaxonomy / taxeditor / propertysheet / type / wizard / TypeDesignationWizard.java
1 /**
2 * Copyright (C) 2009 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.propertysheet.type.wizard;
11
12 import org.apache.log4j.Logger;
13 import org.eclipse.jface.wizard.Wizard;
14 import org.eclipse.jface.wizard.WizardPage;
15
16 import eu.etaxonomy.cdm.model.name.SpecimenTypeDesignation;
17 import eu.etaxonomy.cdm.model.name.TaxonNameBase;
18
19 /**
20 * @author p.ciardelli
21 * @created 13.02.2009
22 * @version 1.0
23 */
24 public class TypeDesignationWizard extends Wizard {
25 private static Logger logger = Logger
26 .getLogger(TypeDesignationWizard.class);
27
28 private SpecimenTypeDesignation typeDesignation;
29 private TaxonNameBase name;
30
31 private WizardPage chooseNamePage;
32
33 /**
34 * @param typeDesignation
35 */
36 public TypeDesignationWizard(SpecimenTypeDesignation typeDesignation, TaxonNameBase name) {
37 this.typeDesignation = typeDesignation;
38 this.name = name;
39 }
40
41 /* (non-Javadoc)
42 * @see org.eclipse.jface.wizard.Wizard#addPages()
43 */
44 public void addPages() {
45 chooseNamePage = new ChooseTypeDesignationWizardPage(typeDesignation, name);
46 addPage(chooseNamePage);
47 }
48
49 /* (non-Javadoc)
50 * @see org.eclipse.jface.wizard.Wizard#performFinish()
51 */
52 @Override
53 public boolean performFinish() {
54
55 chooseNamePage.setPageComplete(true);
56
57 return true;
58 }
59 }