List<String> split = StringUtils.split(s, '_');
if (split.size() > 0) {
mapStartToLib.put(split.get(0), s);
}
}
PythonSelectionLibrariesDialog runnable = new PythonSelectionLibrariesDialog(new ArrayList<String>(
mapStartToLib.values()), libFoldersForPythonpath, false);
runnable.setMsg("Please select the libraries you want in your PYTHONPATH.");
List<String> selection;
if (selectLibraries != null) {
selection = selectLibraries.call(new ArrayList<String>(mapStartToLib.values()));
} else {
RunInUiThread.sync(runnable);
boolean result = runnable.getOkResult();
if (result == false) {
//Canceled by the user
return false;
}
selection = runnable.getSelection();
}
//If we got here, all is OK, let's go on and show the templateNamesAndDescriptions that'll be added to the PYTHONPATH (as external folders)
variableSubstitution.put(AppEngineConstants.GOOGLE_APP_ENGINE_VARIABLE, loc.getAbsolutePath());