get/set env data with single method call for convenient client usage
authorSergey Simonchik <sergey.simonchik@jetbrains.com>
Fri, 15 Jan 2016 18:50:27 +0000 (21:50 +0300)
committerSergey Simonchik <sergey.simonchik@jetbrains.com>
Fri, 15 Jan 2016 18:50:27 +0000 (21:50 +0300)
platform/lang-impl/src/com/intellij/execution/configuration/EnvironmentVariablesComponent.java

index 098cd4b186cae5476b3e709fa2e340c785677fd7..adbb73406e86255402af53bd5c365e6dbe18f3e9 100644 (file)
@@ -66,6 +66,15 @@ public class EnvironmentVariablesComponent extends LabeledComponent<TextFieldWit
     myEnvVars.setPassParentEnvs(passParentEnvs);
   }
 
+  @NotNull
+  public EnvironmentVariablesData getEnvData() {
+    return myEnvVars.getData();
+  }
+
+  public void setEnvData(@NotNull EnvironmentVariablesData envData) {
+    myEnvVars.setData(envData);
+  }
+
   public static void readExternal(Element element, Map<String, String> envs) {
     final Element envsElement = element.getChild(ENVS);
     if (envsElement != null) {