I am building an Eclipse RCP application and am having trouble on settings the size of a JFace Wizard.
To set the size of the dialog, it's
wizardDialog.getShell().setSize(WIDTH, HEIGHT)
To disable that the dialog is resizable, leave the SWT.RESIZE bit in an own WizardDialog implementation:
// original WizardDialog class
public WizardDialog(Shell parentShell, IWizard newWizard) {
super(parentShell);
setShellStyle(SWT.CLOSE | SWT.TITLE | SWT.BORDER | SWT.APPLICATION_MODAL | SWT.RESIZE);
setWizard(newWizard);
...
}
// Own implementation without SWT.RESIZE
public NoResizeWizardDialog(Shell parentShell, IWizard newWizard) {
super(parentShell);
setShellStyle(SWT.CLOSE | SWT.TITLE | SWT.BORDER | SWT.APPLICATION_MODAL);
setWizard(newWizard);
...
}