back.setEnabled(wizard.getPreviousPage(currentPage) != null);
if (next != null)
next.setEnabled(wizard.getNextPage(currentPage) != null && currentPage.canFlipToNextPage());
- finish.setEnabled(wizard.canFinish());
+ if (finish != null)
+ finish.setEnabled(wizard.canFinish());
}
@Override
// backgroundShell.setMaximized(true);
backgroundShell.setAlpha(128);
backgroundShell.setBackground(getDisplay().getSystemColor(SWT.COLOR_BLACK));
- backgroundShell.open();
foregoundShell = new Shell(backgroundShell, SWT.NO_TRIM | SWT.ON_TOP);
if (title != null)
setTitle(title);
});
+ backgroundShell.open();
foregoundShell.open();
// after the foreground shell has been opened
backgroundShell.addFocusListener(new FocusListener() {