Revision 566e18a2
Added by Katja Luther over 5 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/checklist/e4/ChecklistEditorE4.java | ||
---|---|---|
142 | 142 |
private ChecklistEditorFilter filter; |
143 | 143 |
|
144 | 144 |
private Label statusLabel; |
145 |
private Label statusLabelSourceReference; |
|
145 | 146 |
|
146 | 147 |
private ChecklistLabelProvider labelProvider; |
147 | 148 |
|
... | ... | |
252 | 253 |
parent.setLayout(gridLayout); |
253 | 254 |
|
254 | 255 |
searchText = createSearchBar(parent); |
255 |
// createSetDefaultReferenceButton(parent); |
|
256 | 256 |
|
257 |
// getSite().setSelectionProvider(viewer); |
|
258 | 257 |
|
259 | 258 |
} |
260 | 259 |
|
... | ... | |
316 | 315 |
Button button1 = new Button(parent, SWT.PUSH ); |
317 | 316 |
GridData gridData2 = new GridData(); |
318 | 317 |
gridData2.horizontalSpan = 1; |
318 |
gridData2.horizontalAlignment = SWT.RIGHT; |
|
319 | 319 |
button1.setLayoutData(gridData2); |
320 | 320 |
|
321 | 321 |
|
... | ... | |
348 | 348 |
@Override |
349 | 349 |
public void widgetSelected(SelectionEvent event) { |
350 | 350 |
defaultSource = ReferenceSelectionDialog.select(AbstractUtility.getShell(), null); |
351 |
|
|
351 |
statusLabelSourceReference.setText("Default Source Reference: " + defaultSource.getAbbrevTitleCache()); |
|
352 |
button2.setBackground(EditorUtil.getColor(Resources.COLOR_CONTROL_SELECTED)); |
|
352 | 353 |
} |
353 | 354 |
|
354 | 355 |
}); |
... | ... | |
395 | 396 |
@Override |
396 | 397 |
public void widgetSelected(SelectionEvent event) { |
397 | 398 |
defaultSource = ReferenceSelectionDialog.select(AbstractUtility.getShell(), null); |
399 |
statusLabelSourceReference.setText("Default Source Reference: " + defaultSource.getAbbrevTitle() != null? defaultSource.getAbbrevTitle() : defaultSource.getAbbrevTitleCache()); |
|
400 |
|
|
398 | 401 |
} |
399 | 402 |
}); |
400 | 403 |
|
... | ... | |
405 | 408 |
|
406 | 409 |
private void createStatusBar(Composite composite) { |
407 | 410 |
GridData gridData = new GridData(); |
408 |
gridData.horizontalSpan = 3;
|
|
411 |
gridData.horizontalSpan = 1;
|
|
409 | 412 |
gridData.grabExcessHorizontalSpace = true; |
410 | 413 |
gridData.horizontalAlignment = GridData.FILL; |
411 | 414 |
|
412 | 415 |
statusLabel = new Label(composite, SWT.LEFT); |
413 | 416 |
statusLabel.setText(ELEMENT_COUNT + (countNodes != null ? countNodes : UNKNOWN)); |
414 | 417 |
statusLabel.setLayoutData(gridData); |
418 |
|
|
419 |
statusLabelSourceReference = new Label(composite, SWT.RIGHT); |
|
420 |
statusLabelSourceReference.setLayoutData(gridData); |
|
421 |
if (defaultSource != null){ |
|
422 |
statusLabelSourceReference.setText("Default Source Reference: " + defaultSource.getAbbrevTitle() != null? defaultSource.getAbbrevTitle() : defaultSource.getAbbrevTitleCache()); |
|
423 |
|
|
424 |
} |
|
415 | 425 |
} |
416 | 426 |
|
417 | 427 |
private void createTable() { |
Also available in: Unified diff
presenceAbsence terms in distribution editor are sorted, labels instead of abbrevLabels for areas