use of org.gephi.project.spi.ProjectPropertiesUI in project gephi by gephi.
the class ProjectControllerUIImpl method projectProperties.
@Override
public void projectProperties() {
Project project = controller.getCurrentProject();
ProjectPropertiesUI ui = Lookup.getDefault().lookup(ProjectPropertiesUI.class);
if (ui != null) {
JPanel panel = ui.getPanel();
ui.setup(project);
DialogDescriptor dd = new DialogDescriptor(panel, NbBundle.getMessage(ProjectControllerUIImpl.class, "ProjectProperties_dialog_title"));
Object result = DialogDisplayer.getDefault().notify(dd);
if (result == NotifyDescriptor.OK_OPTION) {
ui.unsetup(project);
}
}
}
Aggregations