Bug 272583 [Dialogs] OK button is in the wrong position if dialog explicitly calls layout() before initializeBounds()
Select a project in the Package Explorer and hit delete. When the Delete Resources dialog pops up for confirmation, the 3 buttons are displayed in the following order: Preview, OK, Cancel. On the Mac this should be: Preview, Cancel, OK. Appears to be a problem on both Cocoa and Carbon on Eclipse 3.5 Version: 3.5.0 Build id: I20090414-0800
bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/Dialog.java
* The <code>Dialog</code> implementation of this framework method adds
	 * standard ok and cancel buttons using the <code>createButton</code>
	 * framework method. These standard buttons will be accessible from
	 * <code>getCancelButton</code>, and <code>getOKButton</code>.
	 * Subclasses may override.
	 * </p>
	 * 
	 * @param parent
	 *            the button bar composite
	 */
	protected void createButtonsForButtonBar(Composite parent) {
		
		createButton(parent, IDialogConstants.OK_ID, IDialogConstants.OK_LABEL,
				true);
		createButton(parent, IDialogConstants.CANCEL_ID,
				IDialogConstants.CANCEL_LABEL, false);
	}
	/*
	 * @see Window.initializeBounds()
	 */
	protected void initializeBounds() {
		Shell shell = getShell();
		if (shell != null) {
			if (shell.getDisplay().getDismissalAlignment() == SWT.RIGHT) {
				
				Button defaultButton = shell.getDefaultButton();
				if (defaultButton != null
						&& isContained(buttonBar, defaultButton)) {
					defaultButton.moveBelow(null);
				}