Search in sources :

Example 1 with InterpreterInputDialog

use of org.python.pydev.ui.dialogs.InterpreterInputDialog in project Pydev by fabioz.

the class AbstractInterpreterEditor method newConfig.

private NameAndExecutable newConfig(PrintWriter logger) {
    InterpreterInputDialog dialog = new InterpreterInputDialog(getShell(), "Select interpreter", "Enter the name and executable of your interpreter", this);
    logger.println("- Opening dialog to request executable (or jar).");
    dialog.setAutoPressBrowse(true);
    int result = dialog.open();
    if (result == Window.OK) {
        Tuple<String, String> tup = dialog.getKeyAndValueEntered();
        return new NameAndExecutable(tup.o1, tup.o2);
    }
    return null;
}
Also used : InterpreterInputDialog(org.python.pydev.ui.dialogs.InterpreterInputDialog)

Aggregations

InterpreterInputDialog (org.python.pydev.ui.dialogs.InterpreterInputDialog)1