Community
Participate
Working Groups
/*******************************************************************************
* Copyright (c) 2000, 2007 IBM Corporation and others.
* Copyright (c) 2000, 2008 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
size.width = wHint;
if (hHint != SWT.DEFAULT)
size.height = hHint;
/*
* Adjust for the size of the border
*/
size.expand(container.getInsets().getWidth(),
container.getInsets().getHeight());
size.union(getBorderPreferredSize(container));
return size;
}