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
.featuretree
;
15 import org
.eclipse
.jface
.wizard
.Wizard
;
17 import eu
.etaxonomy
.cdm
.model
.description
.Feature
;
18 import eu
.etaxonomy
.cdm
.model
.description
.FeatureTree
;
21 * <p>AvailableFeaturesWizard class.</p>
24 * @created Aug 5, 2010
27 public class AvailableFeaturesWizard
extends Wizard
{
29 private FeatureTree featureTree
;
31 private AvailableFeaturesWizardPage page
;
33 private Set
<Feature
> additionalFeatures
;
36 * <p>Constructor for AvailableFeaturesWizard.</p>
38 * @param featureTree a {@link eu.etaxonomy.cdm.model.description.FeatureTree} object.
40 public AvailableFeaturesWizard(FeatureTree featureTree
){
41 this.featureTree
= featureTree
;
46 public void addPages() {
47 page
= new AvailableFeaturesWizardPage(featureTree
);
53 public boolean performFinish() {
54 additionalFeatures
= page
.getSelectedFeatures();
55 return additionalFeatures
.size() > 0;
59 * <p>Getter for the field <code>additionalFeatures</code>.</p>
61 * @return a {@link java.util.Set} object.
63 public Set
<Feature
> getAdditionalFeatures() {
64 return additionalFeatures
;