|
Lines 1-5
Link Here
|
| 1 |
/******************************************************************************* |
1 |
/******************************************************************************* |
| 2 |
* Copyright (c) 2000, 2006 IBM Corporation and others. |
2 |
* Copyright (c) 2000, 2009 IBM Corporation and others. |
| 3 |
* All rights reserved. This program and the accompanying materials |
3 |
* All rights reserved. This program and the accompanying materials |
| 4 |
* are made available under the terms of the Eclipse Public License v1.0 |
4 |
* are made available under the terms of the Eclipse Public License v1.0 |
| 5 |
* which accompanies this distribution, and is available at |
5 |
* which accompanies this distribution, and is available at |
|
Lines 105-118
Link Here
|
| 105 |
* Creates composite control and sets the default layout data. |
105 |
* Creates composite control and sets the default layout data. |
| 106 |
* @param parent the parent of the new composite |
106 |
* @param parent the parent of the new composite |
| 107 |
* @param numColumns the number of columns for the new composite |
107 |
* @param numColumns the number of columns for the new composite |
| 108 |
* @param grabExcess TODO |
108 |
* @param grabExcess <code>true</code> if the composite should take up the remaining horizontal and vertical space |
| 109 |
* |
109 |
* |
| 110 |
* @return the newly-created coposite |
110 |
* @return the newly-created coposite |
| 111 |
*/ |
111 |
*/ |
| 112 |
protected Composite createComposite(Composite parent, int numColumns, boolean grabExcess) { |
112 |
protected Composite createComposite(Composite parent, int numColumns, boolean grabExcess) { |
|
|
113 |
return createComposite(parent, numColumns, grabExcess, grabExcess); |
| 114 |
} |
| 115 |
|
| 116 |
/** |
| 117 |
* Creates composite control and sets the default layout data. |
| 118 |
* @param parent the parent of the new composite |
| 119 |
* @param numColumns the number of columns for the new composite |
| 120 |
* @param grabExcessHorizontalSpace <code>true</code> if the composite should take up the remaining horizontal space |
| 121 |
* @param grabExcessVerticalSpace <code>true</code> if the composite should take up the remaining vertical space |
| 122 |
* |
| 123 |
* @return the newly-created coposite |
| 124 |
*/ |
| 125 |
protected Composite createComposite(Composite parent, int numColumns, boolean grabExcessHorizontalSpace, boolean grabExcessVerticalSpace) { |
| 113 |
final Composite composite = new Composite(parent, SWT.NULL); |
126 |
final Composite composite = new Composite(parent, SWT.NULL); |
| 114 |
composite.setLayout(new GridLayout(numColumns, false)); |
127 |
composite.setLayout(new GridLayout(numColumns, false)); |
| 115 |
composite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, grabExcess, grabExcess)); |
128 |
composite.setLayoutData(new GridData(SWT.FILL, SWT.FILL, grabExcessHorizontalSpace, grabExcessHorizontalSpace)); |
| 116 |
return composite; |
129 |
return composite; |
| 117 |
} |
130 |
} |
| 118 |
|
131 |
|