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
.featuretree
;
14 import org
.eclipse
.jface
.wizard
.Wizard
;
16 import eu
.etaxonomy
.cdm
.model
.description
.Feature
;
17 import eu
.etaxonomy
.cdm
.model
.description
.FeatureTree
;
20 * <p>AvailableFeaturesWizard class.</p>
23 * @created Aug 5, 2010
26 public class AvailableFeaturesWizard
extends Wizard
{
28 private FeatureTree featureTree
;
30 private AvailableFeaturesWizardPage page
;
32 private Set
<Feature
> additionalFeatures
;
35 * <p>Constructor for AvailableFeaturesWizard.</p>
37 * @param featureTree a {@link eu.etaxonomy.cdm.model.description.FeatureTree} object.
39 public AvailableFeaturesWizard(FeatureTree featureTree
){
40 this.featureTree
= featureTree
;
45 public void addPages() {
46 page
= new AvailableFeaturesWizardPage(featureTree
);
52 public boolean performFinish() {
53 additionalFeatures
= page
.getSelectedFeatures();
54 return additionalFeatures
.size() > 0;
58 * <p>Getter for the field <code>additionalFeatures</code>.</p>
60 * @return a {@link java.util.Set} object.
62 public Set
<Feature
> getAdditionalFeatures() {
63 return additionalFeatures
;