mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-08 18:26:01 +02:00
Fix for 191177: Add Tasks view to CDT perspective
This commit is contained in:
parent
38180944e5
commit
9c110c533f
1 changed files with 8 additions and 7 deletions
|
@ -8,6 +8,7 @@
|
||||||
* Contributors:
|
* Contributors:
|
||||||
* IBM Corporation - initial API and implementation
|
* IBM Corporation - initial API and implementation
|
||||||
* QNX Software System
|
* QNX Software System
|
||||||
|
* Anton Leherbauer (Wind River Systems)
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
package org.eclipse.cdt.internal.ui;
|
package org.eclipse.cdt.internal.ui;
|
||||||
|
|
||||||
|
@ -21,6 +22,8 @@ import org.eclipse.ui.console.IConsoleConstants;
|
||||||
|
|
||||||
public class CPerspectiveFactory implements IPerspectiveFactory {
|
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.
|
* Constructs a new Default layout engine.
|
||||||
*/
|
*/
|
||||||
|
@ -35,13 +38,14 @@ public class CPerspectiveFactory implements IPerspectiveFactory {
|
||||||
String editorArea = layout.getEditorArea();
|
String editorArea = layout.getEditorArea();
|
||||||
|
|
||||||
IFolderLayout folder1= layout.createFolder("topLeft", IPageLayout.LEFT, (float)0.25, editorArea); //$NON-NLS-1$
|
IFolderLayout folder1= layout.createFolder("topLeft", IPageLayout.LEFT, (float)0.25, editorArea); //$NON-NLS-1$
|
||||||
// folder1.addView(CUIPlugin.CVIEW_ID);
|
folder1.addView(ID_PROJECT_EXPLORER);
|
||||||
// folder1.addView(IPageLayout.ID_RES_NAV);
|
folder1.addPlaceholder(CUIPlugin.CVIEW_ID);
|
||||||
folder1.addView("org.eclipse.ui.navigator.ProjectExplorer"); //$NON-NLS-1$
|
folder1.addPlaceholder(IPageLayout.ID_RES_NAV);
|
||||||
folder1.addPlaceholder(IPageLayout.ID_BOOKMARKS);
|
folder1.addPlaceholder(IPageLayout.ID_BOOKMARKS);
|
||||||
|
|
||||||
IFolderLayout folder2= layout.createFolder("bottom", IPageLayout.BOTTOM, (float)0.75, editorArea); //$NON-NLS-1$
|
IFolderLayout folder2= layout.createFolder("bottom", IPageLayout.BOTTOM, (float)0.75, editorArea); //$NON-NLS-1$
|
||||||
folder2.addView(IPageLayout.ID_PROBLEM_VIEW);
|
folder2.addView(IPageLayout.ID_PROBLEM_VIEW);
|
||||||
|
folder2.addView(IPageLayout.ID_TASK_LIST);
|
||||||
folder2.addView(IConsoleConstants.ID_CONSOLE_VIEW);
|
folder2.addView(IConsoleConstants.ID_CONSOLE_VIEW);
|
||||||
folder2.addView(IPageLayout.ID_PROP_SHEET);
|
folder2.addView(IPageLayout.ID_PROP_SHEET);
|
||||||
|
|
||||||
|
@ -64,10 +68,7 @@ public class CPerspectiveFactory implements IPerspectiveFactory {
|
||||||
layout.addShowViewShortcut(CUIPlugin.CVIEW_ID);
|
layout.addShowViewShortcut(CUIPlugin.CVIEW_ID);
|
||||||
layout.addShowViewShortcut(IPageLayout.ID_RES_NAV);
|
layout.addShowViewShortcut(IPageLayout.ID_RES_NAV);
|
||||||
layout.addShowViewShortcut(IPageLayout.ID_PROP_SHEET);
|
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);
|
addCWizardShortcuts(layout);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue