Revision de69ffd8
Added by Patrick Plitzner about 5 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/featuretree/TermChooseWizard.java | ||
---|---|---|
13 | 13 |
|
14 | 14 |
import org.eclipse.jface.wizard.Wizard; |
15 | 15 |
|
16 |
import eu.etaxonomy.cdm.model.common.TermType; |
|
16 | 17 |
import eu.etaxonomy.cdm.persistence.dto.TermDto; |
17 | 18 |
|
18 | 19 |
/** |
... | ... | |
27 | 28 |
|
28 | 29 |
private List<TermDto> selectedTerms; |
29 | 30 |
|
30 |
public TermChooseWizard(){ |
|
31 |
private TermType termType; |
|
32 |
|
|
33 |
public TermChooseWizard(TermType termType){ |
|
34 |
this.termType = termType; |
|
31 | 35 |
} |
32 | 36 |
|
33 | 37 |
public List<TermDto> getSelectedTerms() { |
... | ... | |
36 | 40 |
|
37 | 41 |
@Override |
38 | 42 |
public void addPages() { |
39 |
page = new TermChooseWizardPage(); |
|
43 |
page = new TermChooseWizardPage(termType);
|
|
40 | 44 |
addPage(page); |
41 | 45 |
} |
42 | 46 |
|
Also available in: Unified diff
ref #8146 Restrict "add term wizard" by termType