diff options
author | Darin Wright | 2006-05-18 15:19:55 +0000 |
---|---|---|
committer | Darin Wright | 2006-05-18 15:19:55 +0000 |
commit | aa63df39a6cd7d1290cbcb28a559b8335bd0be3a (patch) | |
tree | 3f58987b1622f8bc8a9f128485c44b2dc26208f9 /org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/AsynchronousViewer.java | |
parent | 015094fd16efad5314329d2b0004ab0cd5fa6edd (diff) | |
download | eclipse.platform.debug-aa63df39a6cd7d1290cbcb28a559b8335bd0be3a.tar.gz eclipse.platform.debug-aa63df39a6cd7d1290cbcb28a559b8335bd0be3a.tar.xz eclipse.platform.debug-aa63df39a6cd7d1290cbcb28a559b8335bd0be3a.zip |
Bug 139839 - [source lookup] disconnect from PDE source locator
Diffstat (limited to 'org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/AsynchronousViewer.java')
-rw-r--r-- | org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/AsynchronousViewer.java | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/AsynchronousViewer.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/AsynchronousViewer.java index 0a4b7828c..a146581d0 100644 --- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/AsynchronousViewer.java +++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/viewers/AsynchronousViewer.java @@ -749,6 +749,14 @@ public abstract class AsynchronousViewer extends StructuredViewer implements Lis ISelection remaining = doAttemptSelectionToWidget(oldSelection, false); // send out notification if old and new differ fCurrentSelection = newSelectionFromWidget(); + if (!selectionExists(fCurrentSelection)) { + if (selectionExists(oldSelection)) { + // old selection exists in the model, but not widget + fCurrentSelection = oldSelection; + } else { + fCurrentSelection = getEmptySelection(); + } + } if (!fCurrentSelection.equals(oldSelection)) { handleInvalidSelection(oldSelection, fCurrentSelection); // if the remaining selection still exists in the model, make it pending |