Search in sources :

Example 1 with EnvVariablesTable

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();
}
Also used : GeneralCommandLine(com.intellij.execution.configurations.GeneralCommandLine) EnvVariablesTable(com.intellij.execution.util.EnvVariablesTable) TreeMap(java.util.TreeMap) DialogBuilder(com.intellij.openapi.ui.DialogBuilder)

Aggregations

GeneralCommandLine (com.intellij.execution.configurations.GeneralCommandLine)1 EnvVariablesTable (com.intellij.execution.util.EnvVariablesTable)1 DialogBuilder (com.intellij.openapi.ui.DialogBuilder)1 TreeMap (java.util.TreeMap)1