mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-129568 'Tab title limit' setting does not dither out when Tab Placement set to 'None'
This commit is contained in:
+8
-15
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user