Project

General

Profile

Download (1.06 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

    
18
/**
19
 * <p>AvailableFeaturesWizard class.</p>
20
 *
21
 * @author n.hoffmann
22
 * @created Aug 5, 2010
23
 * @version 1.0
24
 */
25
public class AvailableFeaturesWizard extends Wizard {
26

    
27
	private AvailableFeaturesWizardPage page;
28

    
29
	private Set<Feature> additionalFeatures;
30

    
31
	public AvailableFeaturesWizard(){
32
	}
33

    
34
	/** {@inheritDoc} */
35
	@Override
36
	public void addPages() {
37
		page = new AvailableFeaturesWizardPage();
38
		addPage(page);
39
	}
40

    
41
	/** {@inheritDoc} */
42
	@Override
43
	public boolean performFinish() {
44
		additionalFeatures = page.getSelectedFeatures();
45
		return additionalFeatures.size() > 0;
46
	}
47

    
48
	public Set<Feature> getAdditionalFeatures() {
49
		return additionalFeatures;
50
	}
51
}
(1-1/7)