diff options
author | Simeon Andreev | 2018-10-18 13:20:34 +0000 |
---|---|---|
committer | Simeon Andreev | 2018-10-26 15:23:38 +0000 |
commit | 29df3a9b90396e3f2a2dc11dfc9ca5ec129e099d (patch) | |
tree | a09df6782879e9fae396739e486bf69b241cfa5f /org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views | |
parent | 32924160077894cb14dc55ebbc8eb2b0c0156ae6 (diff) | |
download | eclipse.platform.debug-29df3a9b90396e3f2a2dc11dfc9ca5ec129e099d.tar.gz eclipse.platform.debug-29df3a9b90396e3f2a2dc11dfc9ca5ec129e099d.tar.xz eclipse.platform.debug-29df3a9b90396e3f2a2dc11dfc9ca5ec129e099d.zip |
Bug 540253 - Debug inactive after switching perspectivesI20181027-1800I20181026-1800
The fix for bug 538548 introduces a regression as follows. Switch from
Java to Debug perspective, then back to Java perspective. Debug a
snippet until a breakpoint is hit. Choose yes when asked whether to
switch to the Debug perspective. Observe that debug controls are
inactive.
This is the case since LaunchView context provider no longer reacts to
debug events, after switching to the Java perspective. It misses the
breakpoint hit (which also triggers the Debug perspective switch-to
confirmation dialog).
This change removes the fix for bug 538548 and adds a local fix to
SourceLookupService. The added fix prevents an editor popping up in the
current perspective under the following conditions:
1. If the Debug View was not open in the current
perspective.
2. Preferences to switch to a debug perspective on a breakpoint hit or
on launch are set to "never".
3. Preference to activate the Debug View on a breakpoint hit is set to
"disabled".
Change-Id: Iab575ee2f9a292c23c47c95d23afadc49b8b2dff
Signed-off-by: Simeon Andreev <simeon.danailov.andreev@gmail.com>
Signed-off-by: Andrey Loskutov <loskutov@gmx.de>
Diffstat (limited to 'org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views')
-rw-r--r-- | org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/launch/LaunchView.java | 4 |
1 files changed, 1 insertions, 3 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 df5fe6ded..9ba292322 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,9 +474,7 @@ public class LaunchView extends AbstractDebugView private ISelectionChangedListener fTreeViewerSelectionChangedListener = new ISelectionChangedListener() { @Override public void selectionChanged(SelectionChangedEvent event) { - if (isActive()) { - fTreeViewerDebugContextProvider.activate(event.getSelection()); - } + fTreeViewerDebugContextProvider.activate(event.getSelection()); } }; |