*
* @param parent The composite into which the current GUI elements will be
* added.
*/
public final void createControl(final Composite parent) {
PageBook book = new PageBook(parent, SWT.NONE);
preferences = getPreferencePage();
preferences.createControl(book);
super.createControl(book);
doCreateWizardPage(book);
setControl(book);
//
// // When will this be triggered?
// preferences.setListener(new Listener() {
//
// public void handleEvent(Event event) {
// getControl().dispose();
// advancedGrp = null;
// advancedBtnWgt = null;
// hostTextWgt = null;
// portTextWgt = null;
// userTextWgt = null;
// passTextWgt = null;
// //?Db?
// schemaComboWgt = null;
// createControl(parent);
// parent.layout();
// setMessage(getRestartMessage());
// }
//
// });
if (!preferences.installed()) {
setMessage(getDriversMessage());
book.showPage(book.getChildren()[0]);
} else {
book.showPage(book.getChildren()[1]);
}
}