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;
}
Aggregations