IDEA-129568 'Tab title limit' setting does not dither out when Tab Placement set to 'None'

This commit is contained in:
Vassiliy.Kudryashov
2014-09-09 15:21:36 +04:00
parent 874655bd7c
commit 8a048a161f
@@ -69,21 +69,14 @@ public class EditorTabsConfigurable implements EditorOptionsProvider {
private void revalidateSingleRowCheckbox() {
final int i = ((Integer)myEditorTabPlacement.getSelectedItem()).intValue();
if (i == UISettings.TABS_NONE) {
myHideKnownExtensions.setEnabled(false);
myScrollTabLayoutInEditorCheckBox.setEnabled(false);
myCbModifiedTabsMarkedWithAsterisk.setEnabled(false);
myShowTabsTooltipsCheckBox.setEnabled(false);
myShowCloseButtonOnCheckBox.setEnabled(false);
myShowDirectoryInTabCheckBox.setEnabled(false);
} else {
myHideKnownExtensions.setEnabled(true);
myScrollTabLayoutInEditorCheckBox.setEnabled(true);
myCbModifiedTabsMarkedWithAsterisk.setEnabled(true);
myShowTabsTooltipsCheckBox.setEnabled(true);
myShowCloseButtonOnCheckBox.setEnabled(true);
myShowDirectoryInTabCheckBox.setEnabled(true);
}
boolean none = i == UISettings.TABS_NONE;
myHideKnownExtensions.setEnabled(!none);
myScrollTabLayoutInEditorCheckBox.setEnabled(!none);
myCbModifiedTabsMarkedWithAsterisk.setEnabled(!none);
myShowTabsTooltipsCheckBox.setEnabled(!none);
myShowCloseButtonOnCheckBox.setEnabled(!none);
myShowDirectoryInTabCheckBox.setEnabled(!none);
myTabTitleLimitField.setEnabled(!none);
if (SwingConstants.TOP == i) {
myScrollTabLayoutInEditorCheckBox.setEnabled(true);