Revision de69ffd8
Added by Patrick Plitzner about 5 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/featuretree/TermChooseWizardPage.java | ||
---|---|---|
30 | 30 |
public class TermChooseWizardPage extends WizardPage { |
31 | 31 |
|
32 | 32 |
private TermSearchController controller; |
33 |
private TermType termType; |
|
33 | 34 |
|
34 |
protected TermChooseWizardPage() { |
|
35 |
protected TermChooseWizardPage(TermType termType) {
|
|
35 | 36 |
super("Term Choose Wizard"); |
36 | 37 |
setTitle("Term Choose Wizard"); |
37 | 38 |
setDescription("Please search and select the terms you want to add to the tree."); |
39 |
this.termType = termType; |
|
38 | 40 |
} |
39 | 41 |
|
40 | 42 |
@Override |
41 | 43 |
public void createControl(Composite parent) { |
42 | 44 |
SearchComposite searchComposite = new SearchComposite(parent, SWT.NONE); |
43 |
controller = new TermSearchController(searchComposite, TermType.Feature);
|
|
45 |
controller = new TermSearchController(searchComposite, termType);
|
|
44 | 46 |
setControl(searchComposite); |
45 | 47 |
} |
46 | 48 |
|
Also available in: Unified diff
ref #8146 Restrict "add term wizard" by termType