Bug 131978 [Wizards] WizardDialog shell size keeps growing
I20060314-1200 We persist the dialog size for the Apply Patch wizard. Currently, if a user hits help, the help will appear in a tray, courtesy of TrayDialog. The problem is that the tray is figured into the overall dialog size when we persist the dialog size. So the next time we open up the dialog, it will be the same size as the old dialog plus the help tray. If the user hits helps again and closes, the dialog will grow yet again. Repro steps: 1. Open the Apply Patch wizard. 2. Hit F1 + close wizard. 3. Reopen Apply Patch wizard and note new size.
bundles/org.eclipse.jface/src/org/eclipse/jface/dialogs/TrayDialog.java
this.helpAvailable = helpAvailable;
	}
	
	/**
	 * Tests if dialogs that have help control should show it
	 * all the time or only when explicitly requested for
	 * each dialog instance.
	 * 
	 * @return <code>true</code> if dialogs that support help
	 * control should show it by default, <code>false</code> otherwise.
	 * @since 3.2
	 */
	public static boolean isDialogHelpAvailable() {
		return dialogHelpAvailable;
	}
	
	/**
	 * Sets whether JFace dialogs that support help control should
	 * show the control by default. If set to <code>false</code>, 
	 * help control can still be shown on a per-dialog basis.
	 * 
	 * @param helpAvailable <code>true</code> to show the help
	 * control, <code>false</code> otherwise.
	 * @since 3.2
	 */
	public static void setDialogHelpAvailable(boolean helpAvailable) {
		dialogHelpAvailable = helpAvailable;
	}
}