wiz.putProperty("WizardPanel_autoWizardStyle", Boolean.TRUE); // NOI18N
wiz.putProperty("WizardPanel_contentDisplayed", Boolean.TRUE); // NOI18N
wiz.putProperty("WizardPanel_contentNumbered", Boolean.TRUE); // NOI18N
wiz.setTitle(NbBundle.getMessage(PlatformsCustomizer.class,"CTL_AddPlatformTitle"));
wiz.setTitleFormat(new java.text.MessageFormat("{0}")); // NOI18N
Dialog dlg = DialogDisplayer.getDefault().createDialog(wiz);
try {
dlg.setVisible(true);
if (wiz.getValue() == WizardDescriptor.FINISH_OPTION) {
this.getChildren().refreshPlatforms();
Set result = wiz.getInstantiatedObjects();
this.expandPlatforms (result.size() == 0 ? null : (ScalaPlatform)result.iterator().next());
}
} finally {
dlg.dispose();
}
} catch (DataObjectNotFoundException dfne) {
ErrorManager.getDefault().notify (dfne);
}
catch (IOException ioe) {