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
private HashMap buttons = new HashMap();
	/**
	 * Font metrics to use for determining pixel sizes.
	 */
	private FontMetrics fontMetrics;
	
	/**
	 * Number of horizontal dialog units per character, value <code>4</code>.
	 */
	private static final int HORIZONTAL_DIALOG_UNIT_PER_CHAR = 4;
	/**
	 * Number of vertical dialog units per character, value <code>8</code>.
	 */
	private static final int VERTICAL_DIALOG_UNITS_PER_CHAR = 8;
	/**
	 * Returns the number of pixels corresponding to the height of the given
	 * number of characters.
	 * <p>
	 * The required <code>FontMetrics</code> parameter may be created in the
	 * following way: <code>
	 * 	GC gc = new GC(control);
	 *	gc.setFont(control.getFont());
	 *	fontMetrics = gc.getFontMetrics();
	 *	gc.dispose();
	 * </code>
	 * </p>
	 * 
	 * @param fontMetrics
	 *            used in performing the conversion
	 * @param chars