Bug 270174 [Wizards] Wizard's 'Finish' button is misaligned if there are multiple pages and it cannot be finished early
Build id: I20090325-1135 1. File > New > Other... 2. See that the 'Finish' button is at the end of the button bar. 3. Window > Preferences > Java > Installed JREs 4. Click the 'Add...' button. 5. See that the 'Finish' button is not the last button. 6. Close the dialog. 7. Select an existing JRE. 8. Click 'Edit...'. 9. See that the 'Finish' button is at the end of the button bar. I snooped around the code but couldn't quite figure out what was wrong. :o
bundles/org.eclipse.jface/src/org/eclipse/jface/wizard/WizardDialog.java
}
	/**
	 * Creates the Cancel button for this wizard dialog. Creates a standard (<code>SWT.PUSH</code>)
	 * button and registers for its selection events. Note that the number of
	 * columns in the button bar composite is incremented. The Cancel button is
	 * created specially to give it a removeable listener.
	 * 
	 * @param parent
	 *            the parent button bar
	 * @return the new Cancel button
	 */
	private Button createCancelButton(Composite parent) {
		
		((GridLayout) parent.getLayout()).numColumns++;
		Button button = new Button(parent, SWT.PUSH);
		button.setText(IDialogConstants.CANCEL_LABEL);
		setButtonLayoutData(button);
		button.setFont(parent.getFont());
		button.setData(new Integer(IDialogConstants.CANCEL_ID));
		button.addSelectionListener(cancelListener);
		return button;
	}
	/**
	 * Return the cancel button if the id is a the cancel id.
	 * 
	 * @param id
	 *            the button id
	 * @return the button corresponding to the button id
	 */
	protected Button getButton(int id) {