Revision aeb34234
Added by Patrick Plitzner over 5 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/webimport/termimport/GfBioTerminologyImportComposite.java | ||
---|---|---|
17 | 17 |
import org.eclipse.swt.widgets.Combo; |
18 | 18 |
import org.eclipse.swt.widgets.Composite; |
19 | 19 |
import org.eclipse.swt.widgets.Label; |
20 |
import org.eclipse.swt.widgets.List; |
|
20 | 21 |
import org.eclipse.swt.widgets.Text; |
21 | 22 |
import org.eclipse.swt.widgets.Tree; |
22 | 23 |
|
24 |
import eu.etaxonomy.cdm.api.service.IVocabularyService; |
|
25 |
import eu.etaxonomy.cdm.model.common.TermVocabulary; |
|
23 | 26 |
import eu.etaxonomy.taxeditor.model.ImageResources; |
27 |
import eu.etaxonomy.taxeditor.store.CdmStore; |
|
28 |
import eu.etaxonomy.taxeditor.ui.combo.termvocabulary.TermVocabularyComboViewer; |
|
24 | 29 |
|
25 | 30 |
/** |
26 | 31 |
* @author pplitzner |
... | ... | |
43 | 48 |
private Text txtUri; |
44 | 49 |
private Text txtDescription; |
45 | 50 |
private Button btnLoadDetails; |
51 |
private Label lblNewLabel_3; |
|
52 |
private ScrolledComposite scrolledComposite; |
|
53 |
private List listSynonyms; |
|
54 |
private Composite composite_3; |
|
55 |
private Label lblNewLabel_4; |
|
56 |
private Button btnRemoveVocabulary; |
|
57 |
private TermVocabularyComboViewer termVocabularyComboViewer; |
|
46 | 58 |
|
47 | 59 |
public GfBioTerminologyImportComposite(Composite parent, int style) { |
48 | 60 |
super(parent, style); |
... | ... | |
65 | 77 |
btnSearch = new Button(composite, SWT.NONE); |
66 | 78 |
btnSearch.setText("Search"); |
67 | 79 |
|
80 |
composite_3 = new Composite(this, SWT.NONE); |
|
81 |
composite_3.setLayout(new GridLayout(3, false)); |
|
82 |
composite_3.setLayoutData(new GridData(SWT.RIGHT, SWT.FILL, true, false, 1, 1)); |
|
83 |
|
|
84 |
lblNewLabel_4 = new Label(composite_3, SWT.NONE); |
|
85 |
lblNewLabel_4.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1)); |
|
86 |
lblNewLabel_4.setText("Import Vocabulary"); |
|
87 |
|
|
88 |
termVocabularyComboViewer = new TermVocabularyComboViewer(composite_3, SWT.NONE); |
|
89 |
termVocabularyComboViewer.setLayoutData(new GridData(SWT.RIGHT, SWT.FILL, false, false, 1, 1)); |
|
90 |
termVocabularyComboViewer.setInput(CdmStore.getService(IVocabularyService.class).list(TermVocabulary.class, null, null, null, null)); |
|
91 |
|
|
92 |
btnRemoveVocabulary = new Button(composite_3, SWT.NONE); |
|
93 |
btnRemoveVocabulary.setLayoutData(new GridData(SWT.RIGHT, SWT.CENTER, false, false, 1, 1)); |
|
94 |
btnRemoveVocabulary.setImage(ImageResources.getImage(ImageResources.TRASH_ICON)); |
|
95 |
|
|
68 | 96 |
composite_2 = new Composite(this, SWT.NONE); |
69 | 97 |
composite_2.setLayout(new GridLayout(2, false)); |
70 | 98 |
composite_2.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true, 1, 1)); |
... | ... | |
130 | 158 |
public Button getBtnLoadDetails() { |
131 | 159 |
return btnLoadDetails; |
132 | 160 |
} |
161 |
public TermVocabularyComboViewer getTermVocabularyComboViewer() { |
|
162 |
return termVocabularyComboViewer; |
|
163 |
} |
|
164 |
public Button getBtnRemoveVocabulary() { |
|
165 |
return btnRemoveVocabulary; |
|
166 |
} |
|
133 | 167 |
} |
Also available in: Unified diff
ref #7362 Add term vocabular combo