Package org.gephi.project.api

Examples of org.gephi.project.api.ProjectPropertiesUI


        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);
            }
        }
    }
View Full Code Here

TOP

Related Classes of org.gephi.project.api.ProjectPropertiesUI

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.