diff options
author | Jared Burns | 2004-05-12 18:16:31 +0000 |
---|---|---|
committer | Jared Burns | 2004-05-12 18:16:31 +0000 |
commit | 1c967fc15a15cd003aea77c18729963dbf59cb1d (patch) | |
tree | 24db7c45e82ab6906f1f444d2319f564ee29e6fe /org.eclipse.debug.ui | |
parent | ffd630c6517b33e55405ae8180b43ea4eeeadbd7 (diff) | |
download | eclipse.platform.debug-1c967fc15a15cd003aea77c18729963dbf59cb1d.tar.gz eclipse.platform.debug-1c967fc15a15cd003aea77c18729963dbf59cb1d.tar.xz eclipse.platform.debug-1c967fc15a15cd003aea77c18729963dbf59cb1d.zip |
Bug 57164 - Context view activation should maintain view "stack"
Diffstat (limited to 'org.eclipse.debug.ui')
-rw-r--r-- | org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/launch/LaunchViewContextListener.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/launch/LaunchViewContextListener.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/launch/LaunchViewContextListener.java index d2dd7a64d..b1f658785 100644 --- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/launch/LaunchViewContextListener.java +++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/launch/LaunchViewContextListener.java @@ -409,12 +409,14 @@ public class LaunchViewContextListener implements IPartListener2, IPageListener, if (stackedViews == null) { continue; } - int viewIndex= stackedViews.length; // Assume view is at the bottom of the stack until we find it + // For each applicable view, iterate through the view stack. + // If we find that view before any other applicable views, + // show it. Otherwise, don't. for (int i = 0; i < stackedViews.length; i++) { IViewPart stackedView= stackedViews[i]; if (view == stackedView) { - viewIndex= i; - } else if (viewsToShow.contains(stackedView) && i < viewIndex) { + break; + } else if (viewsToShow.contains(stackedView)) { // If this view is below an appropriate view, don't show it activate= false; break; |