Project

General

Profile

« Previous | Next » 

Revision ad00b0fa

Added by Patrick Plitzner almost 7 years ago

ref #6786 Show vocabularies as root element in feature selection

View differences:

eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/featuretree/AvailableFeaturesWizard.java
1 1
/**
2 2
* Copyright (C) 2007 EDIT
3
* European Distributed Institute of Taxonomy 
3
* European Distributed Institute of Taxonomy
4 4
* http://www.e-taxonomy.eu
5
* 
5
*
6 6
* The contents of this file are subject to the Mozilla Public License Version 1.1
7 7
* See LICENSE.TXT at the top of this package for the full license terms.
8 8
*/
......
14 14
import org.eclipse.jface.wizard.Wizard;
15 15

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

  
19 18
/**
20 19
 * <p>AvailableFeaturesWizard class.</p>
......
24 23
 * @version 1.0
25 24
 */
26 25
public class AvailableFeaturesWizard extends Wizard {
27
	
28
	private FeatureTree featureTree;
29 26

  
30 27
	private AvailableFeaturesWizardPage page;
31 28

  
32 29
	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;
30

  
31
	public AvailableFeaturesWizard(){
41 32
	}
42
	
33

  
43 34
	/** {@inheritDoc} */
44 35
	@Override
45 36
	public void addPages() {
46
		page = new AvailableFeaturesWizardPage(featureTree);
37
		page = new AvailableFeaturesWizardPage();
47 38
		addPage(page);
48 39
	}
49
	
40

  
50 41
	/** {@inheritDoc} */
51 42
	@Override
52 43
	public boolean performFinish() {
......
54 45
		return additionalFeatures.size() > 0;
55 46
	}
56 47

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

Also available in: Unified diff