Skip to main content
summaryrefslogtreecommitdiffstats
path: root/memory
diff options
context:
space:
mode:
authorJohn Cortell2010-05-28 09:01:57 -0400
committerJohn Cortell2010-05-28 09:01:57 -0400
commit6f3aa8adf27bd927ef82bfa65408e613d5285302 (patch)
tree8a14e7ec105a9196d0d785cd7f2ed56f0d17ee31 /memory
parent50cde93ef8a9ef9fd5603e5736c5cfdfb7164428 (diff)
downloadorg.eclipse.cdt-6f3aa8adf27bd927ef82bfa65408e613d5285302.tar.gz
org.eclipse.cdt-6f3aa8adf27bd927ef82bfa65408e613d5285302.tar.xz
org.eclipse.cdt-6f3aa8adf27bd927ef82bfa65408e613d5285302.zip
Bug 314745: Need to API to expose the address bar text and memory space ID set in Memory Browser
Diffstat (limited to 'memory')
-rw-r--r--memory/org.eclipse.cdt.debug.ui.memory.memorybrowser/src/org/eclipse/cdt/debug/ui/memory/memorybrowser/MemoryBrowser.java8
1 files changed, 7 insertions, 1 deletions
diff --git a/memory/org.eclipse.cdt.debug.ui.memory.memorybrowser/src/org/eclipse/cdt/debug/ui/memory/memorybrowser/MemoryBrowser.java b/memory/org.eclipse.cdt.debug.ui.memory.memorybrowser/src/org/eclipse/cdt/debug/ui/memory/memorybrowser/MemoryBrowser.java
index 853890c395..c686c3c6a2 100644
--- a/memory/org.eclipse.cdt.debug.ui.memory.memorybrowser/src/org/eclipse/cdt/debug/ui/memory/memorybrowser/MemoryBrowser.java
+++ b/memory/org.eclipse.cdt.debug.ui.memory.memorybrowser/src/org/eclipse/cdt/debug/ui/memory/memorybrowser/MemoryBrowser.java
@@ -23,6 +23,7 @@ import java.util.Map;
import org.eclipse.cdt.debug.core.model.provisional.IMemoryRenderingViewportProvider;
import org.eclipse.cdt.debug.core.model.provisional.IMemorySpaceAwareMemoryBlockRetrieval;
import org.eclipse.cdt.debug.internal.core.CRequest;
+import org.eclipse.cdt.debug.ui.provisional.IRepositionableMemoryRendering2;
import org.eclipse.core.runtime.CoreException;
import org.eclipse.core.runtime.IAdaptable;
import org.eclipse.core.runtime.IProgressMonitor;
@@ -442,7 +443,12 @@ public class MemoryBrowser extends ViewPart implements IDebugContextListener, IM
if (block.supportBaseAddressModification()) {
block.setBaseAddress(newBase);
}
- renderingFinal.goToAddress(newBase);
+ if(renderingFinal instanceof IRepositionableMemoryRendering2) {
+ ((IRepositionableMemoryRendering2)renderingFinal).goToAddress(newBase, expression);
+ }
+ else {
+ renderingFinal.goToAddress(newBase);
+ }
fGotoAddressBar.handleExpressionStatus(Status.OK_STATUS);
runOnUIThread(new Runnable(){
public void run() {

Back to the top