Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDarin Swanson2001-09-13 15:51:21 +0000
committerDarin Swanson2001-09-13 15:51:21 +0000
commitdcfe02d264455a207ed342e9f5f05c6447fa3046 (patch)
treebb0767a0e49d099958ddd418527cd1ab71e0ed09
parentf41d63d11452eaeeff0a5cc0a6eed47ae1021659 (diff)
downloadeclipse.platform.debug-dcfe02d264455a207ed342e9f5f05c6447fa3046.tar.gz
eclipse.platform.debug-dcfe02d264455a207ed342e9f5f05c6447fa3046.tar.xz
eclipse.platform.debug-dcfe02d264455a207ed342e9f5f05c6447fa3046.zip
1GET3SH: ITPDUI:WIN2000 - Relaunch is enabled for scrapbook page launch
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/RelaunchActionDelegate.java12
1 files changed, 11 insertions, 1 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/RelaunchActionDelegate.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/RelaunchActionDelegate.java
index b6023c016..50b65c125 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/RelaunchActionDelegate.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/RelaunchActionDelegate.java
@@ -70,7 +70,17 @@ public class RelaunchActionDelegate extends ControlActionDelegate {
* @see ControlActionDelegate
*/
public boolean isEnabledFor(Object element) {
- return element instanceof ILaunch || element instanceof IDebugElement || element instanceof IProcess;
+ ILaunch launch= null;
+
+ if (element instanceof ILaunch) {
+ launch= (ILaunch)element;
+ } else if (element instanceof IDebugElement) {
+ launch= ((IDebugElement)element).getLaunch();
+ } else if (element instanceof IProcess) {
+ launch= ((IProcess)element).getLaunch();
+ }
+
+ return launch != null && DebugUIPlugin.getDefault().isVisible(launch.getLauncher());
}
/**

Back to the top