From 0cd23fc290cd0787c6053aeb054290b0f44dc932 Mon Sep 17 00:00:00 2001 From: Ed Merks Date: Mon, 16 Mar 2026 17:32:37 +0100 Subject: [PATCH] Improve the default layout of the debug perspective - Configure the section with the Variables view so that it spans the full height of the window. Fixes https://github.com/eclipse-platform/eclipse.platform/issues/2570 --- .../internal/ui/DebugPerspectiveFactory.java | 23 ++++++++++--------- 1 file changed, 12 insertions(+), 11 deletions(-) diff --git a/debug/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/DebugPerspectiveFactory.java b/debug/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/DebugPerspectiveFactory.java index dd92db66b7c..9ea4fd4548f 100644 --- a/debug/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/DebugPerspectiveFactory.java +++ b/debug/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/DebugPerspectiveFactory.java @@ -13,7 +13,6 @@ *******************************************************************************/ package org.eclipse.debug.internal.ui; - import org.eclipse.debug.ui.IDebugUIConstants; import org.eclipse.ui.IFolderLayout; import org.eclipse.ui.IPageLayout; @@ -32,27 +31,29 @@ public class DebugPerspectiveFactory implements IPerspectiveFactory { */ @Override public void createInitialLayout(IPageLayout layout) { - String editorArea = layout.getEditorArea(); - IFolderLayout navFolder = layout.createFolder(IInternalDebugUIConstants.ID_NAVIGATOR_FOLDER_VIEW, IPageLayout.LEFT, (float) 0.25, editorArea); + IFolderLayout navFolder = layout.createFolder(IInternalDebugUIConstants.ID_NAVIGATOR_FOLDER_VIEW, + IPageLayout.LEFT, (float) 0.25, editorArea); navFolder.addView(IDebugUIConstants.ID_DEBUG_VIEW); navFolder.addPlaceholder(IPageLayout.ID_PROJECT_EXPLORER); - IFolderLayout toolsFolder = layout.createFolder(IInternalDebugUIConstants.ID_TOOLS_FOLDER_VIEW, IPageLayout.BOTTOM, (float) 0.75, editorArea); - toolsFolder.addView(IConsoleConstants.ID_CONSOLE_VIEW); - toolsFolder.addView(IPageLayout.ID_PROBLEM_VIEW); - toolsFolder.addPlaceholder(IDebugUIConstants.ID_REGISTER_VIEW); - toolsFolder.addPlaceholder(IPageLayout.ID_BOOKMARKS); - toolsFolder.addPlaceholder(IProgressConstants.PROGRESS_VIEW_ID); - - IFolderLayout outlineFolder = layout.createFolder(IInternalDebugUIConstants.ID_OUTLINE_FOLDER_VIEW, IPageLayout.RIGHT, (float) 0.65, editorArea); + IFolderLayout outlineFolder = layout.createFolder(IInternalDebugUIConstants.ID_OUTLINE_FOLDER_VIEW, + IPageLayout.RIGHT, (float) 0.65, editorArea); outlineFolder.addView(IDebugUIConstants.ID_VARIABLE_VIEW); outlineFolder.addView(IDebugUIConstants.ID_BREAKPOINT_VIEW); outlineFolder.addView(IDebugUIConstants.ID_EXPRESSION_VIEW); outlineFolder.addPlaceholder(IPageLayout.ID_OUTLINE); outlineFolder.addPlaceholder(IPageLayout.ID_PROP_SHEET); + IFolderLayout toolsFolder = layout.createFolder(IInternalDebugUIConstants.ID_TOOLS_FOLDER_VIEW, + IPageLayout.BOTTOM, (float) 0.75, editorArea); + toolsFolder.addView(IConsoleConstants.ID_CONSOLE_VIEW); + toolsFolder.addView(IPageLayout.ID_PROBLEM_VIEW); + toolsFolder.addPlaceholder(IDebugUIConstants.ID_REGISTER_VIEW); + toolsFolder.addPlaceholder(IPageLayout.ID_BOOKMARKS); + toolsFolder.addPlaceholder(IProgressConstants.PROGRESS_VIEW_ID); + layout.addShowViewShortcut(IProgressConstants.PROGRESS_VIEW_ID); layout.addShowViewShortcut(TemplatesView.ID);