Skip to content

Commit 519a3b0

Browse files
committed
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 #2570
1 parent 4f46e73 commit 519a3b0

File tree

1 file changed

+12
-11
lines changed

1 file changed

+12
-11
lines changed

debug/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/DebugPerspectiveFactory.java

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
*******************************************************************************/
1414
package org.eclipse.debug.internal.ui;
1515

16-
1716
import org.eclipse.debug.ui.IDebugUIConstants;
1817
import org.eclipse.ui.IFolderLayout;
1918
import org.eclipse.ui.IPageLayout;
@@ -32,27 +31,29 @@ public class DebugPerspectiveFactory implements IPerspectiveFactory {
3231
*/
3332
@Override
3433
public void createInitialLayout(IPageLayout layout) {
35-
3634
String editorArea = layout.getEditorArea();
3735

38-
IFolderLayout navFolder = layout.createFolder(IInternalDebugUIConstants.ID_NAVIGATOR_FOLDER_VIEW, IPageLayout.LEFT, (float) 0.25, editorArea);
36+
IFolderLayout navFolder = layout.createFolder(IInternalDebugUIConstants.ID_NAVIGATOR_FOLDER_VIEW,
37+
IPageLayout.LEFT, (float) 0.25, editorArea);
3938
navFolder.addView(IDebugUIConstants.ID_DEBUG_VIEW);
4039
navFolder.addPlaceholder(IPageLayout.ID_PROJECT_EXPLORER);
4140

42-
IFolderLayout toolsFolder = layout.createFolder(IInternalDebugUIConstants.ID_TOOLS_FOLDER_VIEW, IPageLayout.BOTTOM, (float) 0.75, editorArea);
43-
toolsFolder.addView(IConsoleConstants.ID_CONSOLE_VIEW);
44-
toolsFolder.addView(IPageLayout.ID_PROBLEM_VIEW);
45-
toolsFolder.addPlaceholder(IDebugUIConstants.ID_REGISTER_VIEW);
46-
toolsFolder.addPlaceholder(IPageLayout.ID_BOOKMARKS);
47-
toolsFolder.addPlaceholder(IProgressConstants.PROGRESS_VIEW_ID);
48-
49-
IFolderLayout outlineFolder = layout.createFolder(IInternalDebugUIConstants.ID_OUTLINE_FOLDER_VIEW, IPageLayout.RIGHT, (float) 0.65, editorArea);
41+
IFolderLayout outlineFolder = layout.createFolder(IInternalDebugUIConstants.ID_OUTLINE_FOLDER_VIEW,
42+
IPageLayout.RIGHT, (float) 0.65, editorArea);
5043
outlineFolder.addView(IDebugUIConstants.ID_VARIABLE_VIEW);
5144
outlineFolder.addView(IDebugUIConstants.ID_BREAKPOINT_VIEW);
5245
outlineFolder.addView(IDebugUIConstants.ID_EXPRESSION_VIEW);
5346
outlineFolder.addPlaceholder(IPageLayout.ID_OUTLINE);
5447
outlineFolder.addPlaceholder(IPageLayout.ID_PROP_SHEET);
5548

49+
IFolderLayout toolsFolder = layout.createFolder(IInternalDebugUIConstants.ID_TOOLS_FOLDER_VIEW,
50+
IPageLayout.BOTTOM, (float) 0.75, editorArea);
51+
toolsFolder.addView(IConsoleConstants.ID_CONSOLE_VIEW);
52+
toolsFolder.addView(IPageLayout.ID_PROBLEM_VIEW);
53+
toolsFolder.addPlaceholder(IDebugUIConstants.ID_REGISTER_VIEW);
54+
toolsFolder.addPlaceholder(IPageLayout.ID_BOOKMARKS);
55+
toolsFolder.addPlaceholder(IProgressConstants.PROGRESS_VIEW_ID);
56+
5657
layout.addShowViewShortcut(IProgressConstants.PROGRESS_VIEW_ID);
5758
layout.addShowViewShortcut(TemplatesView.ID);
5859

0 commit comments

Comments
 (0)