/** The "default" button has been toggled */ public void restoreDefaultVariables() { final EnvironmentVariable[][] libs = new EnvironmentVariable[][] {null}; libs[0] = new EnvironmentVariable[0]; if (libs != null) fEnvironmentVariablesContentProvider.setVariables(libs[0]); update(); }
/** * Initializes this control based on the settings in the given Interpreter install and type. * * @param Interpreter Interpreter or <code>null</code> if none * @param type type of Interpreter install */ public void initializeFrom(IInterpreterInstall Interpreter, IInterpreterInstallType type) { fInterpreterInstall = Interpreter; fInterpreterInstallType = type; if (Interpreter != null) { fEnvironmentVariablesContentProvider.setVariables( getInterpreterInstall().getEnvironmentVariables()); } update(); }