}
}
public void addResultTab(ExecutionResult executionResult) {
JComponent component = executionResult.getResultPanel().getComponent();
TabInfo tabInfo = new TabInfo(component);
tabInfo.setObject(executionResult);
EnvironmentVisibilitySettings visibilitySettings = getEnvironmentSettings(project).getVisibilitySettings();
if (visibilitySettings.getExecutionResultTabs().value()){
tabInfo.setTabColor(executionResult.getConnectionHandler().getEnvironmentType().getColor());
} else {
tabInfo.setTabColor(null);
}
tabInfo.setText(executionResult.getResultName());
tabInfo.setIcon(executionResult.getResultIcon());
resultTabs.addTab(tabInfo);
selectResultTab(tabInfo);
}