Project

General

Profile

Download (1.21 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.term.DefinedTermBase;
17
import eu.etaxonomy.cdm.model.term.TermType;
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 AvailableFeaturesWizardPage page;
29

    
30
	private Set<DefinedTermBase> additionalFeatures;
31

    
32
    private TermType termType;
33

    
34
	public AvailableFeaturesWizard(TermType termType){
35
	    this.termType = termType;
36
	}
37

    
38
	/** {@inheritDoc} */
39
	@Override
40
	public void addPages() {
41
		page = new AvailableFeaturesWizardPage(termType);
42
		addPage(page);
43
	}
44

    
45
	/** {@inheritDoc} */
46
	@Override
47
	public boolean performFinish() {
48
		additionalFeatures = page.getSelectedFeatures();
49
		return additionalFeatures.size() > 0;
50
	}
51

    
52
	public Set<DefinedTermBase> getAdditionalFeatures() {
53
		return additionalFeatures;
54
	}
55
}
(1-1/9)