Bug 60786 [Wizards] [Javadoc] Review of org.eclipse.jface.wizard
This package is very clean and well written. ProgressMonitorPart: - clearBlocked() is undocumented. - setBlocked() is undocumented. - setTaskName() is undocumented. WizardDialog: - close() is undocumented.
bundles/org.eclipse.jface/src/org/eclipse/jface/wizard/WizardDialog.java
/* (non-Javadoc)
	 * Method declared on Dialog.
	 */
	protected void createButtonsForButtonBar(Composite parent) {
		if (wizard.isHelpAvailable()) {
			helpButton = createButton(parent, IDialogConstants.HELP_ID,
					IDialogConstants.HELP_LABEL, false);
		}
		if (wizard.needsPreviousAndNextButtons())
			createPreviousAndNextButtons(parent);
		finishButton = createButton(parent, IDialogConstants.FINISH_ID,
				IDialogConstants.FINISH_LABEL, true);
		cancelButton = createCancelButton(parent);
	}
	/**
	 * 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);