Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMikhail Khodjaiants2004-12-22 15:59:39 -0500
committerMikhail Khodjaiants2004-12-22 15:59:39 -0500
commita0f0cb5366542ff3c45d240fd041871ef37bfb87 (patch)
tree50a71fbdb7644ef6baa88ea67f0a6bbe0c93d3fa
parent0583121e4333fa1b997d268776021b42d29e735b (diff)
downloadorg.eclipse.cdt-a0f0cb5366542ff3c45d240fd041871ef37bfb87.tar.gz
org.eclipse.cdt-a0f0cb5366542ff3c45d240fd041871ef37bfb87.tar.xz
org.eclipse.cdt-a0f0cb5366542ff3c45d240fd041871ef37bfb87.zip
Fix for bug 73168: Use memory view provided by Eclipse platform in CDT.
The CMemoryBlockextension is used as an adapter to "IMemoryBlockRetrieval".
-rw-r--r--debug/org.eclipse.cdt.debug.core/ChangeLog5
-rw-r--r--debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CMemoryBlockExtension.java9
2 files changed, 14 insertions, 0 deletions
diff --git a/debug/org.eclipse.cdt.debug.core/ChangeLog b/debug/org.eclipse.cdt.debug.core/ChangeLog
index 48ebff9e192..a6205b02e98 100644
--- a/debug/org.eclipse.cdt.debug.core/ChangeLog
+++ b/debug/org.eclipse.cdt.debug.core/ChangeLog
@@ -1,4 +1,9 @@
2004-12-21 Mikhail Khodjaiants
+ Fix for bug 73168: Use memory view provided by Eclipse platform in CDT.
+ The CMemoryBlockextension is used as an adapter to "IMemoryBlockRetrieval".
+ * CMemoryBlockExtension.java
+
+2004-12-21 Mikhail Khodjaiants
Switch to the new memory view interfaces (Eclipse 3.1).
* InternalDebugCoreMessages.properties
* CMemoryBlockExtensionRetrieval.java: new
diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CMemoryBlockExtension.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CMemoryBlockExtension.java
index 07401bc218b..39e1417b108 100644
--- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CMemoryBlockExtension.java
+++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CMemoryBlockExtension.java
@@ -443,4 +443,13 @@ public class CMemoryBlockExtension extends CDebugElement implements IMemoryBlock
// TODO Auto-generated method stub
return 0;
}
+
+ /* (non-Javadoc)
+ * @see org.eclipse.core.runtime.IAdaptable#getAdapter(java.lang.Class)
+ */
+ public Object getAdapter( Class adapter ) {
+ if ( IMemoryBlockRetrieval.class.equals( adapter ) )
+ return getMemoryBlockRetrieval();
+ return super.getAdapter( adapter );
+ }
}

Back to the top