View | Details | Raw Unified | Return to bug 314914
Collapse All | Expand All

(-)Eclipse SWT/common/org/eclipse/swt/layout/GridData.java (-3 / +11 lines)
Lines 26-36 Link Here
26
 * 		gridData.horizontalAlignment = GridData.FILL;
26
 * 		gridData.horizontalAlignment = GridData.FILL;
27
 * 		gridData.grabExcessHorizontalSpace = true;
27
 * 		gridData.grabExcessHorizontalSpace = true;
28
 * 		button1.setLayoutData(gridData);
28
 * 		button1.setLayoutData(gridData);
29
 * 
30
 * 		gridData = new GridData();
31
 * 		gridData.horizontalAlignment = GridData.FILL;
32
 * 		gridData.verticalAlignment = GridData.FILL;
33
 * 		gridData.grabExcessHorizontalSpace = true;
34
 * 		gridData.grabExcessVerticalSpace = true;
35
 * 		gridData.horizontalSpan = 2;
36
 * 		button2.setLayoutData(gridData);
29
 * </pre>
37
 * </pre>
30
 * The second is to take advantage of convenience style bits defined 
38
 * The second is to take advantage of <code>GridData</code> convenience constructors, for example: 
31
 * by <code>GridData</code>:
32
 * <pre>
39
 * <pre>
33
 *      button1.setLayoutData(new GridData(GridData.HORIZONTAL_ALIGN_FILL | GridData.GRAB_HORIZONTAL));
40
 *      button1.setLayoutData(new GridData (SWT.FILL, SWT.CENTER, true, false));
41
 *      button2.setLayoutData(new GridData (SWT.FILL, SWT.FILL, true, true, 2, 1));
34
 * </pre>
42
 * </pre>
35
 * </p>
43
 * </p>
36
 * <p>
44
 * <p>

Return to bug 314914