Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDani Megert2014-10-06 14:43:43 +0000
committerDani Megert2014-10-06 14:43:43 +0000
commit67ab45167dc73f66adf47470532a7c71a3d3339f (patch)
tree85d9aa7c691566164f628055e157f2c1c362f7e8
parentba61015c1e69a063769f94b35f693e35fad4e677 (diff)
downloadeclipse.platform.debug-67ab45167dc73f66adf47470532a7c71a3d3339f.tar.gz
eclipse.platform.debug-67ab45167dc73f66adf47470532a7c71a3d3339f.tar.xz
eclipse.platform.debug-67ab45167dc73f66adf47470532a7c71a3d3339f.zip
Fixed bug 414051: Minimized view restored when starting a new debug sessionI20141007-1500I20141007-0800
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/ViewContextService.java11
1 files changed, 9 insertions, 2 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/ViewContextService.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/ViewContextService.java
index bc2aebb6d..e56f6d3b1 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/ViewContextService.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/ViewContextService.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2006, 2013 IBM Corporation and others.
+ * Copyright (c) 2006, 2014 IBM Corporation and others.
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
@@ -512,7 +512,8 @@ public class ViewContextService implements IDebugContextListener, IPerspectiveLi
*/
public void checkZOrder(IWorkbenchPage page, Set<String> relevantViews) {
// see if view is open already
- IViewPart part = page.findView(getViewId());
+ String viewId = getViewId();
+ IViewPart part = page.findView(viewId);
if (part != null) {
IViewPart[] viewStack = page.getViewStack(part);
if (viewStack != null && viewStack.length > 0) {
@@ -521,6 +522,12 @@ public class ViewContextService implements IDebugContextListener, IPerspectiveLi
return;
}
+ // Don't bring a minimized or fast view to front
+ IViewReference partRef = page.findViewReference(viewId);
+ if (partRef.isFastView() || IWorkbenchPage.STATE_MINIMIZED == page.getPartState(partRef)) {
+ return;
+ }
+
// an irrelevant view is visible
try {
fIgnoreChanges = true;

Back to the top