*/
@Override
protected void initializeBounds() {
super.initializeBounds();
Shell shell = getShell();
/* Minimum Size */
int minWidth = convertHorizontalDLUsToPixels(OwlUI.MIN_DIALOG_WIDTH_DLU);
int minHeight = shell.computeSize(minWidth, SWT.DEFAULT).y;
/* Required Size */
Point requiredSize = shell.computeSize(SWT.DEFAULT, SWT.DEFAULT);
/* Bug in SWT: The preferred width of the state condition is wrong */
if (displaysSavedSearch()) {
if (Application.IS_LINUX)
requiredSize.x = requiredSize.x + 100;
else if (Application.IS_MAC)
requiredSize.x = requiredSize.x + 50;
}
shell.setSize(Math.max(minWidth, requiredSize.x), Math.max(minHeight, requiredSize.y));
LayoutUtils.positionShell(shell);
}