62ae0c540eaa5eb097fea074f8b352287c48f489
[taxeditor.git] / taxeditor-editor / src / main / java / eu / etaxonomy / taxeditor / propertysheet / namerelations / wizard / NameRelationWizard.java
1 /**
2 * Copyright (C) 2007 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.namerelations.wizard;
11
12 import org.apache.log4j.Logger;
13 import org.eclipse.core.databinding.observable.list.WritableList;
14 import org.eclipse.jface.wizard.IWizardPage;
15 import org.eclipse.jface.wizard.Wizard;
16
17 import eu.etaxonomy.cdm.model.name.TaxonNameBase;
18
19 /**
20 * @author p.ciardelli
21 * @created 04.06.2008
22 * @version 1.0
23 */
24 public class NameRelationWizard extends Wizard {
25 private static final Logger logger = Logger
26 .getLogger(NameRelationWizard.class);
27
28 public static final String ID = "eu.etaxonomy.taxeditor.namerelationwizard";
29
30 private TaxonNameBase name;
31 private WritableList nameRelationsList;
32
33 private ChooseRelationWizardPage chooseRelationPage;
34
35 // private NameRelationWizardModel relationModel;
36
37 public NameRelationWizard(TaxonNameBase name, WritableList nameRelationsList) {
38 super();
39
40 this.name = name;
41 this.nameRelationsList = nameRelationsList;
42 }
43
44 /* (non-Javadoc)
45 * @see org.eclipse.jface.wizard.Wizard#addPages()
46 */
47 public void addPages() {
48 chooseRelationPage = new ChooseRelationWizardPage(name, nameRelationsList);
49 addPage(chooseRelationPage);
50 }
51
52 @Override
53 public boolean performFinish() {
54
55 chooseRelationPage.setPageComplete(true);
56
57 return true;
58 }
59 }