return environments[localEnv];
}
public void changeControlPressed(DialogField field) {
IEnvironment environment = getEnvironment();
IEnvironmentUI environmentUI = (IEnvironmentUI) environment
.getAdapter(IEnvironmentUI.class);
if (environmentUI != null) {
String selectedDirectory = environmentUI.selectFolder(shell);
if (selectedDirectory != null) {
fLocation.setText(selectedDirectory);
DLTKUIPlugin.getDefault().getDialogSettings()
.put(DIALOGSTORE_LAST_EXTERNAL_LOC, selectedDirectory);