2 * Copyright (C) 2007 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
.namerelations
.wizard
;
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
;
17 import eu
.etaxonomy
.cdm
.model
.name
.TaxonNameBase
;
24 public class NameRelationWizard
extends Wizard
{
25 private static final Logger logger
= Logger
26 .getLogger(NameRelationWizard
.class);
28 public static final String ID
= "eu.etaxonomy.taxeditor.namerelationwizard";
30 private TaxonNameBase name
;
31 private WritableList nameRelationsList
;
33 private ChooseRelationWizardPage chooseRelationPage
;
35 // private NameRelationWizardModel relationModel;
37 public NameRelationWizard(TaxonNameBase name
, WritableList nameRelationsList
) {
41 this.nameRelationsList
= nameRelationsList
;
45 * @see org.eclipse.jface.wizard.Wizard#addPages()
47 public void addPages() {
48 chooseRelationPage
= new ChooseRelationWizardPage(name
, nameRelationsList
);
49 addPage(chooseRelationPage
);
53 public boolean performFinish() {
55 chooseRelationPage
.setPageComplete(true);