void (@NotNull ShRunConfiguration configuration) { if (configuration.isExecuteScriptFile()) { myScriptFileRadioButton.setSelected(true); } else { myScriptTextRadioButton.setSelected(true); } selectMode(); // Configure UI for script text execution myScript.setText(configuration.getScriptText()); myScriptWorkingDirectory.setText(configuration.getScriptWorkingDirectory()); myExecuteScriptInTerminal.setSelected(configuration.isExecuteInTerminal()); myScriptEnvComponent.setEnvData(configuration.getEnvData()); // Configure script by path execution myScriptSelector.setText(configuration.getScriptPath()); myScriptOptions.setText(configuration.getScriptOptions()); myScriptFileWorkingDirectory.setText(configuration.getScriptWorkingDirectory()); myInterpreterSelector.setText(configuration.getInterpreterPath()); myInterpreterOptions.setText(configuration.getInterpreterOptions()); myExecuteFileInTerminal.setSelected(configuration.isExecuteInTerminal()); myEnvComponent.setEnvData(configuration.getEnvData()); }