aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimeon Andreev2018-09-03 10:55:09 -0400
committerSimeon Andreev2018-09-12 03:52:57 -0400
commit927fcf00cd9a746968c4e8a2d2f29ecfd6a2e937 (patch)
tree722c901859e88571842698611bbd649fea552d88
parent429be954283cd8253bb30b7fd8cd28ff8af5abf0 (diff)
downloadeclipse.platform.debug-927fcf00cd9a746968c4e8a2d2f29ecfd6a2e937.tar.gz
eclipse.platform.debug-927fcf00cd9a746968c4e8a2d2f29ecfd6a2e937.tar.xz
eclipse.platform.debug-927fcf00cd9a746968c4e8a2d2f29ecfd6a2e937.zip
Bug 538548 - Debug View in another perspective causes editor to pop-upY20180912-2200I20180913-1800I20180913-0415I20180912-2240
If a window has the Debug View open in an inactive perspective, breakpoint hits will cause an editor to open in that window. This hinders the use of multiple windows, each with a different type of perspective. Only windows which have the Debug View in their active perspective should show source on breakpoint hit. The editor is activated due to the Debug View reacting to selection events, which occur due to breakpoint hits. This change ensures that the Debug View will react to selection events only if its active. I.e. only if the active perspective of the window contains the Debug View. Change-Id: Ida92f5322e1a83b95af4bc43f25a9fac9d4519b6 Signed-off-by: Simeon Andreev <simeon.danailov.andreev@gmail.com>
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/launch/LaunchView.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/launch/LaunchView.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/launch/LaunchView.java
index e293d5ced..df5fe6ded 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/launch/LaunchView.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/launch/LaunchView.java
@@ -474,7 +474,9 @@ public class LaunchView extends AbstractDebugView
private ISelectionChangedListener fTreeViewerSelectionChangedListener = new ISelectionChangedListener() {
@Override
public void selectionChanged(SelectionChangedEvent event) {
- fTreeViewerDebugContextProvider.activate(event.getSelection());
+ if (isActive()) {
+ fTreeViewerDebugContextProvider.activate(event.getSelection());
+ }
}
};