showCustomizer ( preselectedCategory, null );
}
public void showCustomizer( String preselectedCategory, String preselectedSubCategory ) {
Dialog dialog = (Dialog)project2Dialog.get (project);
if ( dialog != null ) {
dialog.setVisible(true);
return;
}
else {
J2SEProjectProperties uiProperties = new J2SEProjectProperties( (J2SEProject)project, updateHelper, evaluator, refHelper, genFileHelper );
Lookup context = Lookups.fixed(new Object[] {
project,
uiProperties,
new SubCategoryProvider(preselectedCategory, preselectedSubCategory)
});
OptionListener listener = new OptionListener( project, uiProperties );
dialog = ProjectCustomizer.createCustomizerDialog( CUSTOMIZER_FOLDER_PATH, context, preselectedCategory, listener, null );
dialog.addWindowListener( listener );
dialog.setTitle( MessageFormat.format(
NbBundle.getMessage( CustomizerProviderImpl.class, "LBL_Customizer_Title" ), // NOI18N
new Object[] { ProjectUtils.getInformation(project).getDisplayName() } ) );
project2Dialog.put(project, dialog);
dialog.setVisible(true);
}
}