Revision 28c6d8ea
Added by Katja Luther over 6 years ago
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/ui/dialog/selection/SearchDialog.java | ||
---|---|---|
95 | 95 |
|
96 | 96 |
protected Button newButton2; |
97 | 97 |
protected Button filterButton; |
98 |
protected Button btnCheckButton; |
|
98 | 99 |
private StructuredSelection currentSelection; |
99 | 100 |
|
100 | 101 |
// message to show user |
... | ... | |
115 | 116 |
|
116 | 117 |
private static final String EMPTY_STRING = ""; //$NON-NLS-1$ |
117 | 118 |
private GridData gd_1; |
119 |
protected boolean useIdentifier; |
|
118 | 120 |
|
119 | 121 |
public SearchDialog(Shell parent, boolean multi) { |
120 | 122 |
super(parent); |
... | ... | |
141 | 143 |
final Label headerLabel = createHeader(container); |
142 | 144 |
|
143 | 145 |
Composite searchAndFilter = new Composite(container, container.getStyle()); |
144 |
GridData gd_searchAndFilter =new GridData(GridData.GRAB_HORIZONTAL | GridData.HORIZONTAL_ALIGN_FILL); |
|
145 | 146 |
|
146 |
searchAndFilter.setLayoutData(gd_searchAndFilter);
|
|
147 |
searchAndFilter.setLayoutData(new GridData(GridData.GRAB_HORIZONTAL | GridData.HORIZONTAL_ALIGN_FILL));
|
|
147 | 148 |
GridLayout searchAndFilterLayout = new GridLayout(); |
148 | 149 |
searchAndFilterLayout.numColumns = 2; |
149 | 150 |
searchAndFilter.setLayout(searchAndFilterLayout); |
... | ... | |
168 | 169 |
searchField.setLayoutData(gd_1); |
169 | 170 |
|
170 | 171 |
createFilterButton(searchAndFilter); |
171 |
new Label(searchAndFilter, SWT.NONE); |
|
172 |
|
|
173 |
addIdentifierCheckButton(searchAndFilter); |
|
172 | 174 |
setList(new TableViewer(container, SWT.SINGLE |
173 | 175 |
| SWT.BORDER | SWT.V_SCROLL | SWT.VIRTUAL)); |
174 | 176 |
|
... | ... | |
197 | 199 |
} |
198 | 200 |
|
199 | 201 |
|
202 |
protected void addIdentifierCheckButton(Composite searchAndFilter) { |
|
203 |
//as default do nothing |
|
204 |
} |
|
205 |
|
|
206 |
|
|
200 | 207 |
abstract void createFilterButton(Composite searchAndFilter) ; |
201 | 208 |
|
202 | 209 |
protected abstract void search(); |
... | ... | |
433 | 440 |
} |
434 | 441 |
|
435 | 442 |
|
443 |
public boolean isUseIdentifier() { |
|
444 |
return useIdentifier; |
|
445 |
} |
|
446 |
|
|
436 | 447 |
|
437 | 448 |
public StructuredSelection getCurrentSelection() { |
438 | 449 |
return currentSelection; |
Also available in: Unified diff
ref #5687: add possibility to search for identifier