Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSarika Sinha2017-05-31 06:10:41 -0400
committerSarika Sinha2017-06-01 00:43:14 -0400
commitb98f0dde962a619b801f7daf2c4228222d6a4a99 (patch)
treeafbb02e7df2078d2d761aac6fcfdce242904799f
parent29bb515d0852caf42779dbd84313eb79a30e24a1 (diff)
downloadeclipse.platform.debug-R3_8_maintenance.tar.gz
eclipse.platform.debug-R3_8_maintenance.tar.xz
eclipse.platform.debug-R3_8_maintenance.zip
Bug 517481 - MemoryRetrievalProxy listener isn't added when openingR3_8_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