try {
if (!completed
&& !COConfigurationManager.getBooleanParameter("Wizard Completed")) {
int result = MessageBoxShell.open(this.getWizardWindow(),
MessageText.getString("wizard.close.confirmation"),
MessageText.getString("wizard.close.message"), new String[] {
MessageText.getString("Button.yes"),
MessageText.getString("Button.no")
}, 0);
if (result == 1) {
COConfigurationManager.setParameter("Wizard Completed", true);
COConfigurationManager.save();
}
}
} catch (Exception e) {
e.printStackTrace();
}
super.onClose();