Revision 6e927caf
Added by Patrick Plitzner almost 6 years ago
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/descriptiveDataSet/matrix/quantitative/QuantitativeDataDialogComposite.java | ||
---|---|---|
48 | 48 |
scrolledComposite_1.setExpandVertical(true); |
49 | 49 |
|
50 | 50 |
Composite valuesComposite = new Composite(scrolledComposite_1, SWT.NONE); |
51 |
valuesComposite.setLayout(new GridLayout()); |
|
51 |
GridLayout gl_valuesComposite = new GridLayout(); |
|
52 |
gl_valuesComposite.marginWidth = 0; |
|
53 |
gl_valuesComposite.marginHeight = 0; |
|
54 |
valuesComposite.setLayout(gl_valuesComposite); |
|
52 | 55 |
|
53 | 56 |
//add empty text field |
54 | 57 |
Text emptyTextField = addValue(initialInput==null?null:initialInput.toString(), valuesComposite); |
... | ... | |
68 | 71 |
private Text addValue(String value, Composite valuesComposite) { |
69 | 72 |
Composite composite_2 = new Composite(valuesComposite, SWT.NONE); |
70 | 73 |
composite_2.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false, 1, 1)); |
71 |
composite_2.setLayout(new GridLayout(2, false)); |
|
74 |
GridLayout gl_composite_2 = new GridLayout(2, false); |
|
75 |
gl_composite_2.marginHeight = 0; |
|
76 |
gl_composite_2.marginWidth = 0; |
|
77 |
gl_composite_2.verticalSpacing = 0; |
|
78 |
gl_composite_2.horizontalSpacing = 2; |
|
79 |
composite_2.setLayout(gl_composite_2); |
|
72 | 80 |
|
73 | 81 |
Text text = new Text(composite_2, SWT.BORDER); |
74 | 82 |
text.setLayoutData(new GridData(SWT.FILL, SWT.CENTER, true, false, 1, 1)); |
Also available in: Unified diff
ref #7575 small layout changes