-
Notifications
You must be signed in to change notification settings - Fork 207
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restrict Pin View and Open View to active CPP debug context.
That is if any CPP application is under debug. Because Pin View is never enabled other than CPP application debug session. This also includes Action to Command migration. see #1048
- Loading branch information
1 parent
9e04dc5
commit 7e3c76f
Showing
7 changed files
with
372 additions
and
310 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
41 changes: 0 additions & 41 deletions
41
...cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/OpenNewViewActionDelegate.java
This file was deleted.
Oops, something went wrong.
41 changes: 41 additions & 0 deletions
41
...clipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/actions/OpenNewViewHandler.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
/******************************************************************************* | ||
* Copyright (c) 2010, 2014 Texas Instruments and others | ||
* | ||
* This program and the accompanying materials | ||
* are made available under the terms of the Eclipse Public License 2.0 | ||
* which accompanies this distribution, and is available at | ||
* https://www.eclipse.org/legal/epl-2.0/ | ||
* | ||
* SPDX-License-Identifier: EPL-2.0 | ||
* | ||
* Contributors: | ||
* Patrick Chuong (Texas Instruments) - Initial implementation of run() | ||
* Marc Dumais (Ericsson) - Bug 437692 | ||
* Raghunandana Murthappa(Advantest Europe GmbH) - Issue 1048 | ||
*******************************************************************************/ | ||
package org.eclipse.cdt.debug.internal.ui.actions; | ||
|
||
import org.eclipse.core.commands.AbstractHandler; | ||
import org.eclipse.core.commands.ExecutionEvent; | ||
import org.eclipse.core.commands.ExecutionException; | ||
import org.eclipse.core.runtime.IStatus; | ||
import org.eclipse.ui.IViewPart; | ||
import org.eclipse.ui.handlers.HandlerUtil; | ||
|
||
/** | ||
* Handler that opens the new View of the view type selected. This is used by | ||
* the OpenNewViewCommand which is contributed to debug related views. | ||
*/ | ||
public class OpenNewViewHandler extends AbstractHandler { | ||
private OpenNewViewAction fOpenNewViewAction = new OpenNewViewAction(); | ||
|
||
@Override | ||
public Object execute(ExecutionEvent event) throws ExecutionException { | ||
IViewPart viewPart = (IViewPart) HandlerUtil.getActivePart(event); | ||
fOpenNewViewAction.init(viewPart); | ||
fOpenNewViewAction.run(); | ||
|
||
return IStatus.OK; | ||
} | ||
|
||
} |
Oops, something went wrong.