* Create and format the IWindowTrim for the handle, ensuring that the
* handle will be 'wide' enough to display the drag affordance.
*/
private void createWindowTrimProxy() {
// Create a window trim proxy for the handle
WindowTrimProxy proxy = new WindowTrimProxy(this, "NONE", "NONE", //$NON-NLS-1$ //$NON-NLS-2$
SWT.TOP | SWT.BOTTOM | SWT.LEFT | SWT.RIGHT, false);
// Set up the handle's hints based on the computed size that
// the handle has to be (i.e. if it's HORIZONTAL then the
// 'width' is determined by the space required to show the
// CB's drag affordance).
if (orientation == SWT.HORIZONTAL) {
proxy.setWidthHint(getHandleSize());
proxy.setHeightHint(0);
}
else {
proxy.setWidthHint(0);
proxy.setHeightHint(getHandleSize());
}
setLayoutData(proxy);
}