Revision 68df4af3
Added by Patrick Plitzner about 6 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/workingSet/matrix/CharacterMatrix.java | ||
---|---|---|
99 | 99 |
import org.eclipse.swt.layout.GridLayout; |
100 | 100 |
import org.eclipse.swt.widgets.Button; |
101 | 101 |
import org.eclipse.swt.widgets.Composite; |
102 |
import org.eclipse.swt.widgets.Label; |
|
102 | 103 |
|
103 | 104 |
import ca.odell.glazedlists.EventList; |
104 | 105 |
import ca.odell.glazedlists.GlazedLists; |
... | ... | |
204 | 205 |
thisPart.setLabel(workingSet.getLabel()); |
205 | 206 |
|
206 | 207 |
Composite toolbarComposite = new Composite(parent, SWT.NONE); |
207 |
toolbarComposite.setLayout(new GridLayout(3, false));
|
|
208 |
toolbarComposite.setLayoutData(new GridData(SWT.TRAIL, SWT.CENTER, true, false));
|
|
208 |
toolbarComposite.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false));
|
|
209 |
toolbarComposite.setLayout(new GridLayout(4, false));
|
|
209 | 210 |
|
210 | 211 |
//get features/columns stored in working set |
211 | 212 |
FeatureTree tree = workingSet.getDescriptiveSystem(); |
... | ... | |
462 | 463 |
|
463 | 464 |
GridDataFactory.fillDefaults().grab(true, true).applyTo(natTable); |
464 | 465 |
|
466 |
/** |
|
467 |
* Info label |
|
468 |
*/ |
|
469 |
Label wsLabel = new Label(toolbarComposite, SWT.NONE); |
|
470 |
wsLabel.setText(workingSet.getLabel()); |
|
471 |
wsLabel.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false)); |
|
472 |
|
|
465 | 473 |
/** |
466 | 474 |
* Table state persistence |
467 | 475 |
*/ |
Also available in: Unified diff
ref #7095 add label to toolbar