Project

General

Profile

Download (1.49 KB) Statistics
| Branch: | Tag: | Revision:
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.featuretree;
11

    
12
import java.util.Set;
13

    
14
import org.eclipse.jface.wizard.Wizard;
15

    
16
import eu.etaxonomy.cdm.model.description.Feature;
17
import eu.etaxonomy.cdm.model.description.FeatureTree;
18

    
19
/**
20
 * <p>AvailableFeaturesWizard class.</p>
21
 *
22
 * @author n.hoffmann
23
 * @created Aug 5, 2010
24
 * @version 1.0
25
 */
26
public class AvailableFeaturesWizard extends Wizard {
27
	
28
	private FeatureTree featureTree;
29

    
30
	private AvailableFeaturesWizardPage page;
31

    
32
	private Set<Feature> additionalFeatures;
33
	
34
	/**
35
	 * <p>Constructor for AvailableFeaturesWizard.</p>
36
	 *
37
	 * @param featureTree a {@link eu.etaxonomy.cdm.model.description.FeatureTree} object.
38
	 */
39
	public AvailableFeaturesWizard(FeatureTree featureTree){
40
		this.featureTree = featureTree;
41
	}
42
	
43
	/** {@inheritDoc} */
44
	@Override
45
	public void addPages() {
46
		page = new AvailableFeaturesWizardPage(featureTree);
47
		addPage(page);
48
	}
49
	
50
	/** {@inheritDoc} */
51
	@Override
52
	public boolean performFinish() {
53
		additionalFeatures = page.getSelectedFeatures();
54
		return additionalFeatures.size() > 0;
55
	}
56

    
57
	/**
58
	 * <p>Getter for the field <code>additionalFeatures</code>.</p>
59
	 *
60
	 * @return a {@link java.util.Set} object.
61
	 */
62
	public Set<Feature> getAdditionalFeatures() {
63
		return additionalFeatures;
64
	}
65
}
(1-1/10)