Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSarika Sinha2017-04-13 02:02:10 -0400
committerSarika Sinha2017-04-13 02:02:10 -0400
commitcbae4c7c2374e4265f51fedaf5faa6c1e8df945b (patch)
tree0edac16e368902a3034f9f5bfe625bce3a7ef6c4 /org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui
parentdc90c09f030a8347a715054261d62b973fdb3d92 (diff)
downloadeclipse.platform.debug-cbae4c7c2374e4265f51fedaf5faa6c1e8df945b.tar.gz
eclipse.platform.debug-cbae4c7c2374e4265f51fedaf5faa6c1e8df945b.tar.xz
eclipse.platform.debug-cbae4c7c2374e4265f51fedaf5faa6c1e8df945b.zip
MemoryView with no active debug session Change-Id: I4203f6c4b1cdb8db7c0d26047ce1e0b67ee8f9d2
Diffstat (limited to 'org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui')
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/memory/MemoryBlocksTreeViewPane.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/memory/MemoryBlocksTreeViewPane.java b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/memory/MemoryBlocksTreeViewPane.java
index 9ae970c70..8965a6fe9 100644
--- a/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/memory/MemoryBlocksTreeViewPane.java
+++ b/org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/memory/MemoryBlocksTreeViewPane.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2004, 2013 IBM Corporation and others.
+ * Copyright (c) 2004, 2017 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
@@ -264,7 +264,7 @@ public class MemoryBlocksTreeViewPane implements ISelectionListener, ISelectionC
if (obj instanceof IAdaptable) {
IAdaptable context = (IAdaptable) obj;
IMemoryBlockRetrieval retrieval = MemoryViewUtil.getMemoryBlockRetrieval(context);
- if (retrieval != null && retrieval != fRetrieval && fTreeViewer != null && fTreeViewer.getContentProvider() != null) {
+ if (retrieval != null && (retrieval != fRetrieval || retrieval != fTreeViewer.getInput()) && fTreeViewer != null && fTreeViewer.getContentProvider() != null) {
// set new setting
fRetrieval = retrieval;
fTreeViewer.setInput(fRetrieval);

Back to the top