Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 104403
Collapse All | Expand All

(-)MainTab.java (-1 / +6 lines)
Lines 41-46 Link Here
41
import org.eclipse.swt.events.SelectionAdapter;
41
import org.eclipse.swt.events.SelectionAdapter;
42
import org.eclipse.swt.events.SelectionEvent;
42
import org.eclipse.swt.events.SelectionEvent;
43
import org.eclipse.swt.graphics.Image;
43
import org.eclipse.swt.graphics.Image;
44
import org.eclipse.swt.graphics.Point;
44
import org.eclipse.swt.layout.GridData;
45
import org.eclipse.swt.layout.GridData;
45
import org.eclipse.swt.layout.GridLayout;
46
import org.eclipse.swt.layout.GridLayout;
46
import org.eclipse.swt.widgets.Button;
47
import org.eclipse.swt.widgets.Button;
Lines 205-211 Link Here
205
		Text description = new Text(composite, SWT.READ_ONLY | SWT.WRAP);
206
		Text description = new Text(composite, SWT.READ_ONLY | SWT.WRAP);
206
		description.setText(SSEUIMessages.TaskTagPreferenceTab_33); //$NON-NLS-1$
207
		description.setText(SSEUIMessages.TaskTagPreferenceTab_33); //$NON-NLS-1$
207
		description.setBackground(composite.getBackground());
208
		description.setBackground(composite.getBackground());
208
		description.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_FILL, GridData.VERTICAL_ALIGN_FILL, false, false, 2, 1));
209
		GridData gd = new GridData(GridData.HORIZONTAL_ALIGN_FILL, GridData.VERTICAL_ALIGN_FILL, true, false, 2, 1);
210
		// https://bugs.eclipse.org/bugs/show_bug.cgi?id=104403
211
		Point sizeHint = description.computeSize(SWT.DEFAULT, SWT.DEFAULT);
212
		gd.widthHint = sizeHint.x;
213
		description.setLayoutData(gd);
209
214
210
		valueTable = new TableViewer(composite, SWT.BORDER | SWT.SINGLE | SWT.FULL_SELECTION | SWT.H_SCROLL | SWT.V_SCROLL);
215
		valueTable = new TableViewer(composite, SWT.BORDER | SWT.SINGLE | SWT.FULL_SELECTION | SWT.H_SCROLL | SWT.V_SCROLL);
211
		valueTable.getControl().setLayoutData(new GridData(GridData.FILL_BOTH));
216
		valueTable.getControl().setLayoutData(new GridData(GridData.FILL_BOTH));

Return to bug 104403