From 927fcf00cd9a746968c4e8a2d2f29ecfd6a2e937 Mon Sep 17 00:00:00 2001 From: Simeon Andreev Date: Mon, 3 Sep 2018 16:55:09 +0200 Subject: Bug 538548 - Debug View in another perspective causes editor to pop-up 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 --- .../ui/org/eclipse/debug/internal/ui/views/launch/LaunchView.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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()); + } } }; -- cgit v1.2.3