Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSarika Sinha2017-05-31 06:10:41 -0400
committerSarika Sinha2017-05-31 06:14:27 -0400
commita9b93468310f61e28e84cca0501252f2d698dc8a (patch)
tree6679f4cb4433390ac8db2dca5528c520f69d3884
parent6da59e331257660033419e866d0217adece57191 (diff)
downloadeclipse.platform.debug-R4_3_maintenance.tar.gz
eclipse.platform.debug-R4_3_maintenance.tar.xz
eclipse.platform.debug-R4_3_maintenance.zip
Bug 517481 - MemoryRetrievalProxy listener isn't added when openingR4_3_maintenance
MemoryView with no active debug session Change-Id: Ia272e26409d63d19422a7a0f012d48aeb3d6ca71
-rw-r--r--org.eclipse.debug.ui/ui/org/eclipse/debug/internal/ui/views/memory/MemoryBlocksTreeViewPane.java6
1 files changed, 2 insertions, 4 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 2e4179594..e448c0d43 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, 2010 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
@@ -257,9 +257,7 @@ public class MemoryBlocksTreeViewPane implements ISelectionListener, ISelectionC
{
IAdaptable context = (IAdaptable)obj;
IMemoryBlockRetrieval retrieval = MemoryViewUtil.getMemoryBlockRetrieval(context);
- if (retrieval != null && retrieval != fRetrieval &&
- fTreeViewer != null && fTreeViewer.getContentProvider() != null)
- {
+ if (retrieval != null && fTreeViewer != null && (retrieval != fRetrieval || retrieval != fTreeViewer.getInput()) && fTreeViewer.getContentProvider() != null) {
// set new setting
fRetrieval = retrieval;
fTreeViewer.setInput(fRetrieval);

Back to the top