From 9d431accc34ac623ec32a6eb26f585b6bdf52171 Mon Sep 17 00:00:00 2001 From: Konstantin Hudyakov Date: Fri, 10 Oct 2025 18:21:29 +0300 Subject: [PATCH] [toolwindow] IJPL-59194 Drop 'ide.allow.split.and.reorder.in.tool.window' registry property It is true by default for years and not used by our users. GitOrigin-RevId: 2b51a70f558e1eb4e0a409958c9dc7725e99b3fb --- .../intellij/openapi/wm/impl/content/ToolWindowContentUi.java | 4 +--- .../src/com/intellij/toolWindow/ToolWindowPane.kt | 4 +--- platform/util/resources/misc/registry.properties | 3 --- 3 files changed, 2 insertions(+), 9 deletions(-) diff --git a/platform/platform-impl/src/com/intellij/openapi/wm/impl/content/ToolWindowContentUi.java b/platform/platform-impl/src/com/intellij/openapi/wm/impl/content/ToolWindowContentUi.java index c62e1864b6ba..0eada08cb9e7 100644 --- a/platform/platform-impl/src/com/intellij/openapi/wm/impl/content/ToolWindowContentUi.java +++ b/platform/platform-impl/src/com/intellij/openapi/wm/impl/content/ToolWindowContentUi.java @@ -19,7 +19,6 @@ import com.intellij.openapi.ui.popup.ListPopup; import com.intellij.openapi.util.Disposer; import com.intellij.openapi.util.Key; import com.intellij.openapi.util.Ref; -import com.intellij.openapi.util.registry.Registry; import com.intellij.openapi.wm.*; import com.intellij.openapi.wm.impl.ToolWindowImpl; import com.intellij.openapi.wm.impl.ToolWindowManagerImpl; @@ -821,8 +820,7 @@ public final class ToolWindowContentUi implements ContentUI, UiCompatibleDataPro * @return whether reorder and split of tabs in the provided tool window is allowed. */ public static boolean isTabsReorderingAllowed(@NotNull ToolWindow window) { - return ClientProperty.isTrue(window.getComponent(), ALLOW_TABS_REORDERING) && - Registry.is("ide.allow.split.and.reorder.in.tool.window", false); + return ClientProperty.isTrue(window.getComponent(), ALLOW_TABS_REORDERING); } private static final Key TOOLWINDOW_IN_EDITOR_SUPPORT = Key.create("ToolWindowInEditorSupport"); diff --git a/platform/platform-impl/src/com/intellij/toolWindow/ToolWindowPane.kt b/platform/platform-impl/src/com/intellij/toolWindow/ToolWindowPane.kt index ac19173be0c2..7834e01a423a 100644 --- a/platform/platform-impl/src/com/intellij/toolWindow/ToolWindowPane.kt +++ b/platform/platform-impl/src/com/intellij/toolWindow/ToolWindowPane.kt @@ -183,9 +183,7 @@ class ToolWindowPane private constructor( add(layeredPane, DEFAULT_LAYER, -1) focusTraversalPolicy = LayoutFocusTraversalPolicy() ToolWindowDragHelper(disposable, this).start() - if (Registry.`is`("ide.allow.split.and.reorder.in.tool.window")) { - ToolWindowInnerDragHelper(disposable, this).start() - } + ToolWindowInnerDragHelper(disposable, this).start() } private fun setUpSplitter(splitter: ThreeComponentsSplitter) { diff --git a/platform/util/resources/misc/registry.properties b/platform/util/resources/misc/registry.properties index ca4e36a5e1f9..d35937dfee6f 100644 --- a/platform/util/resources/misc/registry.properties +++ b/platform/util/resources/misc/registry.properties @@ -129,9 +129,6 @@ ide.new.tool.window.start.drag.deadzone=100 ide.new.tool.window.start.drag.deadzone.description=Minimal distance from pressed point to start drag (and thus to avoid mistaken one) ide.switcher.tool.window.list=true ide.switcher.tool.window.list.description=Shows a list of tool windows in the Switcher popup -ide.allow.split.and.reorder.in.tool.window=true -ide.allow.split.and.reorder.in.tool.window.description=Allows reordering tabs and splitting space in tool windows -ide.allow.split.and.reorder.in.tool.window.restartRequired=true ide.tool.window.prevent.move.resize.timeout=100 ide.tool.window.prevent.move.resize.timeout.description=Time interval (in ms) after showing a detached (floating or windowed) tool window during which\ OS/JBR-induced moves and resizes will be prevented. Set to a negative value to disable this functionality