mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-179992 Could not change max number of tabs
Registry key ide.max.editor.tabs=100 to customize open tabs limit
This commit is contained in:
+2
-1
@@ -20,6 +20,7 @@ import com.intellij.ide.ui.UINumericRange;
|
||||
import com.intellij.ide.ui.UISettings;
|
||||
import com.intellij.openapi.application.ApplicationBundle;
|
||||
import com.intellij.openapi.options.ConfigurationException;
|
||||
import com.intellij.openapi.util.registry.Registry;
|
||||
import com.intellij.ui.ListCellRendererWrapper;
|
||||
import org.jetbrains.annotations.Nls;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
@@ -34,7 +35,7 @@ import java.awt.event.ItemListener;
|
||||
* @author yole
|
||||
*/
|
||||
public class EditorTabsConfigurable implements EditorOptionsProvider {
|
||||
private static final UINumericRange EDITOR_TABS_RANGE = new UINumericRange(10, 1, 100);
|
||||
private static final UINumericRange EDITOR_TABS_RANGE = new UINumericRange(10, 1, Math.max(10, Registry.intValue("ide.max.editor.tabs", 100)));
|
||||
private JPanel myRootPanel;
|
||||
private JCheckBox myHideKnownExtensions;
|
||||
private JCheckBox myScrollTabLayoutInEditorCheckBox;
|
||||
|
||||
@@ -70,6 +70,8 @@ ide.dnd.textHints=false
|
||||
ide.max.recent.projects=50
|
||||
ide.max.recent.projects.description=Maximum number of recent project available
|
||||
|
||||
ide.max.editor.tabs=100
|
||||
ide.max.editor.tabs.description=Maximum number of open editor tabs
|
||||
ide.editor.tabs.open.at.the.end=false
|
||||
ide.editor.tabs.open.at.the.end.description=If true all new tabs will be opened at the end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user