diff options
author | Sarika Sinha | 2015-11-21 10:21:04 +0000 |
---|---|---|
committer | Sarika Sinha | 2015-11-21 10:21:04 +0000 |
commit | 6f5e0264ae9b4bb8e564c76bb6c97984bf8b04ee (patch) | |
tree | dfc5cef3dd1ab0e42e2225082c1b4e8153213fc0 | |
parent | 7524d39c4f2f8b62e7bf82363ccc1f4be0b7697a (diff) | |
download | eclipse.platform.debug-6f5e0264ae9b4bb8e564c76bb6c97984bf8b04ee.tar.gz eclipse.platform.debug-6f5e0264ae9b4bb8e564c76bb6c97984bf8b04ee.tar.xz eclipse.platform.debug-6f5e0264ae9b4bb8e564c76bb6c97984bf8b04ee.zip |
Bug 481615 - Source Lookup caches any artifact but only clearsI20151124-1000I20151124-0800
IStackframes. Any non-stackframe artifact can't be updated to show
different source.
Change-Id: Iccde86c2615744acd5bb3449d9736b398c732021
-rw-r--r-- | org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/sourcelookup/SourceLookupFacility.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/sourcelookup/SourceLookupFacility.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/sourcelookup/SourceLookupFacility.java index d69938957..d45fc73db 100644 --- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/sourcelookup/SourceLookupFacility.java +++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/sourcelookup/SourceLookupFacility.java @@ -1,5 +1,5 @@ /******************************************************************************* - * Copyright (c) 2000, 2014 IBM Corporation and others. + * Copyright (c) 2000, 2015 IBM Corporation and others. * All rights reserved. This program and the accompanying materials * are made available under the terms of the Eclipse Public License v1.0 * which accompanies this distribution, and is available at @@ -42,7 +42,6 @@ import org.eclipse.debug.internal.ui.views.launch.Decoration; import org.eclipse.debug.internal.ui.views.launch.DecorationManager; import org.eclipse.debug.internal.ui.views.launch.SourceNotFoundEditorInput; import org.eclipse.debug.internal.ui.views.launch.StandardDecoration; - import org.eclipse.debug.ui.DebugUITools; import org.eclipse.debug.ui.IDebugEditorPresentation; import org.eclipse.debug.ui.IDebugModelPresentation; @@ -377,7 +376,9 @@ public class SourceLookupFacility implements IPageListener, IPartListener2, IPro result.setEditorInput(editorInput); result.setEditorId(editorId); result.setSourceElement(sourceElement); - fLookupResults.put(key, result); + if (key instanceof IStackFrame) { + fLookupResults.put(key, result); + } } } return result; |