Package org.python.pydev.ui.dialogs

Examples of org.python.pydev.ui.dialogs.PythonModulePickerDialog.open()


                            if (folder instanceof IProject) {
                                Shell parent = PyAction.getShell();
                                PythonModulePickerDialog dialog = new PythonModulePickerDialog(parent,
                                        "Select python file", "Select the python file to be launched.",
                                        (IProject) folder);
                                int result = dialog.open();
                                if (result == PythonModulePickerDialog.OK) {
                                    Object results[] = dialog.getResult();
                                    if ((results != null) && (results.length > 0) && (results[0] instanceof IFile)) {
                                        resource = (IResource) results[0];
                                    }
View Full Code Here


                            "Choose Python module which starts execution", project);

                    // Fixed request 1407469: main module browse button forgets path                   
                    dialog.setInitialSelection(currentFile);

                    int result = dialog.open();
                    if (result == PythonModulePickerDialog.OK) {
                        Object results[] = dialog.getResult();
                        if ((results != null) && (results.length > 0) && (results[0] instanceof IFile)) {
                            IFile file = (IFile) results[0];
                            IPath path = file.getFullPath();
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.