EnvironmentTypesTableModel model = environmentTypesTable.getModel();
model.validate();
EnvironmentTypeBundle environmentTypeBundle = model.getEnvironmentTypes();
boolean settingsChanged = settings.setEnvironmentTypes(environmentTypeBundle);
EnvironmentVisibilitySettings visibilitySettings = settings.getVisibilitySettings();
boolean visibilityChanged =
visibilitySettings.getConnectionTabs().applyChanges(connectionTabsCheckBox) ||
visibilitySettings.getObjectEditorTabs().applyChanges(objectEditorTabsCheckBox) ||
visibilitySettings.getScriptEditorTabs().applyChanges(scriptEditorTabsCheckBox)||
visibilitySettings.getDialogHeaders().applyChanges(dialogHeadersCheckBox)||
visibilitySettings.getExecutionResultTabs().applyChanges(executionResultTabsCheckBox);
if (visibilityChanged) {
EnvironmentChangeListener listener = EventManager.notify(getConfiguration().getProject(), EnvironmentChangeListener.TOPIC);
listener.environmentVisibilitySettingsChanged();
}