this.project = project;
putValue(Action.NAME, NbBundle.getMessage(ProjectNode.class, "ProjectNode_projectProperties"));
}
public void actionPerformed(ActionEvent e) {
ProjectPropertiesUI ui = Lookup.getDefault().lookup(ProjectPropertiesUI.class);
if (ui != null) {
JPanel panel = ui.getPanel();
ui.load(project);
DialogDescriptor dd = new DialogDescriptor(panel, NbBundle.getMessage(ProjectNode.class, "ProjectNode_projectProperties_dialogTitle"));
Object result = DialogDisplayer.getDefault().notify(dd);
if (result == NotifyDescriptor.OK_OPTION) {
ui.save(project);
}
}
}