use of com.intellij.execution.util.EnvVariablesTable in project intellij-community by JetBrains.
the class EnvironmentVariablesTextFieldWithBrowseButton method showParentEnvironmentDialog.
public static void showParentEnvironmentDialog(@NotNull Component parent) {
EnvVariablesTable table = new EnvVariablesTable();
table.setValues(convertToVariables(new TreeMap<>(new GeneralCommandLine().getParentEnvironment()), true));
table.getActionsPanel().setVisible(false);
DialogBuilder builder = new DialogBuilder(parent);
builder.setTitle(ExecutionBundle.message("environment.variables.system.dialog.title"));
builder.centerPanel(table.getComponent());
builder.addCloseButton();
builder.show();
}
Aggregations