Package org.gephi.desktop.project.api

Examples of org.gephi.desktop.project.api.ProjectControllerUI.openProject()


                    return;
                }
                if (fileObject.hasExt(GEPHI_EXTENSION)) {
                    ProjectControllerUI pc = Lookup.getDefault().lookup(ProjectControllerUI.class);
                    try {
                        pc.openProject(file);
                    } catch (Exception ew) {
                        ew.printStackTrace();
                        NotifyDescriptor.Message msg = new NotifyDescriptor.Message(NbBundle.getMessage(CommandLineProcessor.class, "CommandLineProcessor.openGephiError"), NotifyDescriptor.WARNING_MESSAGE);
                        DialogDisplayer.getDefault().notify(msg);
                    }
View Full Code Here


                    }
                    if (fileObject.hasExt(GEPHI_EXTENSION)) {

                        ProjectControllerUI pc = Lookup.getDefault().lookup(ProjectControllerUI.class);
                        try {
                            pc.openProject(file);
                        } catch (Exception ew) {
                            ew.printStackTrace();
                            NotifyDescriptor.Message msg = new NotifyDescriptor.Message(NbBundle.getMessage(DragNDropFrameAdapter.class, "DragNDropFrameAdapter.openGephiError"), NotifyDescriptor.WARNING_MESSAGE);
                            DialogDisplayer.getDefault().notify(msg);
                        }
View Full Code Here

                File file = (File) link.getClientProperty(LINK_PATH);
                FileObject fileObject = FileUtil.toFileObject(file);
                if (fileObject.hasExt(GEPHI_EXTENSION)) {
                    ProjectControllerUI pc = Lookup.getDefault().lookup(ProjectControllerUI.class);
                    try {
                        pc.openProject(file);
                    } catch (Exception ex) {
                        ex.printStackTrace();
                        NotifyDescriptor.Message msg = new NotifyDescriptor.Message(NbBundle.getMessage(WelcomeTopComponent.class, "WelcomeTopComponent.openGephiError"), NotifyDescriptor.WARNING_MESSAGE);
                        DialogDisplayer.getDefault().notify(msg);
                    }
View Full Code Here

                    public void actionPerformed(ActionEvent e) {
                        FileObject fileObject = FileUtil.toFileObject(file);
                        if (fileObject.hasExt(GEPHI_EXTENSION)) {
                            ProjectControllerUI pc = Lookup.getDefault().lookup(ProjectControllerUI.class);
                            try {
                                pc.openProject(file);
                            } catch (Exception ex) {
                                Exceptions.printStackTrace(ex);
                            }
                        } else {
                            ImportControllerUI importController = Lookup.getDefault().lookup(ImportControllerUI.class);
View Full Code Here

                    public void actionPerformed(ActionEvent e) {
                        FileObject fileObject = FileUtil.toFileObject(file);
                        if (fileObject.hasExt(GEPHI_EXTENSION)) {
                            ProjectControllerUI pc = Lookup.getDefault().lookup(ProjectControllerUI.class);
                            try {
                                pc.openProject(file);
                            } catch (Exception ex) {
                                Exceptions.printStackTrace(ex);
                            }
                        } else {
                            ImportControllerUI importController = Lookup.getDefault().lookup(ImportControllerUI.class);
View Full Code Here

                    return;
                }
                if (fileObject.hasExt(GEPHI_EXTENSION)) {
                    ProjectControllerUI pc = Lookup.getDefault().lookup(ProjectControllerUI.class);
                    try {
                        pc.openProject(file);
                    } catch (Exception ew) {
                        ew.printStackTrace();
                        NotifyDescriptor.Message msg = new NotifyDescriptor.Message(NbBundle.getMessage(CommandLineProcessor.class, "CommandLineProcessor.openGephiError"), NotifyDescriptor.WARNING_MESSAGE);
                        DialogDisplayer.getDefault().notify(msg);
                    }
View Full Code Here

                    }
                    if (fileObject.hasExt(GEPHI_EXTENSION)) {

                        ProjectControllerUI pc = Lookup.getDefault().lookup(ProjectControllerUI.class);
                        try {
                            pc.openProject(file);
                        } catch (Exception ew) {
                            ew.printStackTrace();
                            NotifyDescriptor.Message msg = new NotifyDescriptor.Message(NbBundle.getMessage(DragNDropFrameAdapter.class, "DragNDropFrameAdapter.openGephiError"), NotifyDescriptor.WARNING_MESSAGE);
                            DialogDisplayer.getDefault().notify(msg);
                        }
View Full Code Here

                File file = (File) link.getClientProperty(LINK_PATH);
                FileObject fileObject = FileUtil.toFileObject(file);
                if (fileObject.hasExt(GEPHI_EXTENSION)) {
                    ProjectControllerUI pc = Lookup.getDefault().lookup(ProjectControllerUI.class);
                    try {
                        pc.openProject(file);
                    } catch (Exception ex) {
                        ex.printStackTrace();
                        NotifyDescriptor.Message msg = new NotifyDescriptor.Message(NbBundle.getMessage(WelcomeTopComponent.class, "WelcomeTopComponent.openGephiError"), NotifyDescriptor.WARNING_MESSAGE);
                        DialogDisplayer.getDefault().notify(msg);
                    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.