void (Tool tool, String @Nls [] existingGroups) { content.nameField.setText(tool.getName()); content.descriptionField.setText(tool.getDescription()); if (content.groupCombo.getItemCount() > 0) { content.groupCombo.removeAllItems(); } for (@Nls String existingGroup : existingGroups) { if (existingGroup != null) { content.groupCombo.addItem(existingGroup); } } content.groupCombo.setSelectedItem(tool.getGroup()); content.useConsoleCheckbox.setSelected(tool.isUseConsole()); content.showConsoleOnStdOutCheckbox.setEnabled(content.useConsoleCheckbox.isSelected()); content.showConsoleOnStdOutCheckbox.setSelected(tool.isShowConsoleOnStdOut()); content.showConsoleOnStdErrCheckbox.setEnabled(content.useConsoleCheckbox.isSelected()); content.showConsoleOnStdErrCheckbox.setSelected(tool.isShowConsoleOnStdErr()); content.synchronizedAfterRunCheckbox.setSelected(tool.synchronizeAfterExecution()); myEnabled = tool.isEnabled(); content.workingDirField.setText(FileUtil.toSystemDependentName(StringUtil.notNullize(tool.getWorkingDirectory()))); content.programField.setText(tool.getProgram()); content.argumentsField.setText(tool.getParameters()); content.outputFilterField.setText(OUTPUT_FILTERS_JOINER.fun(ContainerUtil.map(tool.getOutputFilters(), info -> info.getRegExp()))); }