1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-08 10:16:03 +02:00

Fix for 191177: Add Tasks view to CDT perspective

This commit is contained in:
Anton Leherbauer 2007-06-06 08:45:00 +00:00
parent 38180944e5
commit 9c110c533f

View file

@ -8,6 +8,7 @@
* Contributors:
* IBM Corporation - initial API and implementation
* QNX Software System
* Anton Leherbauer (Wind River Systems)
*******************************************************************************/
package org.eclipse.cdt.internal.ui;
@ -21,6 +22,8 @@ import org.eclipse.ui.console.IConsoleConstants;
public class CPerspectiveFactory implements IPerspectiveFactory {
private static final String ID_PROJECT_EXPLORER = "org.eclipse.ui.navigator.ProjectExplorer"; //$NON-NLS-1$
/**
* Constructs a new Default layout engine.
*/
@ -35,13 +38,14 @@ public class CPerspectiveFactory implements IPerspectiveFactory {
String editorArea = layout.getEditorArea();
IFolderLayout folder1= layout.createFolder("topLeft", IPageLayout.LEFT, (float)0.25, editorArea); //$NON-NLS-1$
// folder1.addView(CUIPlugin.CVIEW_ID);
// folder1.addView(IPageLayout.ID_RES_NAV);
folder1.addView("org.eclipse.ui.navigator.ProjectExplorer"); //$NON-NLS-1$
folder1.addView(ID_PROJECT_EXPLORER);
folder1.addPlaceholder(CUIPlugin.CVIEW_ID);
folder1.addPlaceholder(IPageLayout.ID_RES_NAV);
folder1.addPlaceholder(IPageLayout.ID_BOOKMARKS);
IFolderLayout folder2= layout.createFolder("bottom", IPageLayout.BOTTOM, (float)0.75, editorArea); //$NON-NLS-1$
folder2.addView(IPageLayout.ID_PROBLEM_VIEW);
folder2.addView(IPageLayout.ID_TASK_LIST);
folder2.addView(IConsoleConstants.ID_CONSOLE_VIEW);
folder2.addView(IPageLayout.ID_PROP_SHEET);
@ -64,11 +68,8 @@ public class CPerspectiveFactory implements IPerspectiveFactory {
layout.addShowViewShortcut(CUIPlugin.CVIEW_ID);
layout.addShowViewShortcut(IPageLayout.ID_RES_NAV);
layout.addShowViewShortcut(IPageLayout.ID_PROP_SHEET);
layout.addShowViewShortcut(IPageLayout.ID_TASK_LIST);
// link - things we should do
layout.addShowInPart(CUIPlugin.CVIEW_ID);
layout.addShowInPart(IPageLayout.ID_RES_NAV);
addCWizardShortcuts(layout);
}