1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-07 09:46:02 +02:00

Reworked previous change for 179340.

This commit is contained in:
Ken Ryall 2007-05-11 05:31:02 +00:00
parent 04f8a1f32f
commit bc25cdb9a5
2 changed files with 7 additions and 6 deletions

View file

@ -8,13 +8,11 @@
* Contributors: * Contributors:
* IBM Corporation - initial API and implementation * IBM Corporation - initial API and implementation
* QNX Software System * QNX Software System
* Ken Ryall (Nokia) - Bug 179340 add breakpoint actions to C++ perspective
*******************************************************************************/ *******************************************************************************/
package org.eclipse.cdt.internal.ui; package org.eclipse.cdt.internal.ui;
import org.eclipse.cdt.internal.ui.wizards.CWizardRegistry; import org.eclipse.cdt.internal.ui.wizards.CWizardRegistry;
import org.eclipse.cdt.ui.CUIPlugin; import org.eclipse.cdt.ui.CUIPlugin;
import org.eclipse.search.ui.NewSearchUI; import org.eclipse.search.ui.NewSearchUI;
import org.eclipse.ui.IFolderLayout; import org.eclipse.ui.IFolderLayout;
import org.eclipse.ui.IPageLayout; import org.eclipse.ui.IPageLayout;
@ -71,9 +69,6 @@ public class CPerspectiveFactory implements IPerspectiveFactory {
layout.addShowInPart(CUIPlugin.CVIEW_ID); layout.addShowInPart(CUIPlugin.CVIEW_ID);
layout.addShowInPart(IPageLayout.ID_RES_NAV); layout.addShowInPart(IPageLayout.ID_RES_NAV);
// Add in the breakpoint action set, these are commonly used even if not debugging yet.
layout.addActionSet("org.eclipse.debug.ui.breakpointActionSet"); //$NON-NLS-1$
addCWizardShortcuts(layout); addCWizardShortcuts(layout);
} }

View file

@ -39,6 +39,12 @@
</extension> </extension>
<extension <extension
point="org.eclipse.ui.perspectiveExtensions"> point="org.eclipse.ui.perspectiveExtensions">
<perspectiveExtension
targetID="org.eclipse.cdt.ui.CPerspective">
<actionSet
id="org.eclipse.debug.ui.breakpointActionSet">
</actionSet>
</perspectiveExtension>
<perspectiveExtension <perspectiveExtension
targetID="org.eclipse.debug.ui.DebugPerspective"> targetID="org.eclipse.debug.ui.DebugPerspective">
<view <view