Implementing the 'Refresh Memory' action.
Index:
ChangeLog
===================================================================
RCS
file: /home/tools/org.eclipse.cdt.debug.core/ChangeLog,v
retrieving revision
1.38
diff -u -r1.38 ChangeLog
--- ChangeLog 30 Oct 2002 21:55:59
-0000 1.38
+++ ChangeLog 30 Oct 2002 23:35:37 -0000
@@ -1,4 +1,9
@@
2002-10-30 Mikhail Khodjaiants
+ Implementing the 'Refresh
Memory' action.
+ * IFormattedMemoryBlock.java: added the 'refresh'
method.
+ * CFormattedMemoryBlock.java: implementation of the 'refresh'
method.
+
+2002-10-30 Mikhail Khodjaiants
Implementation of
the 'SaveMemoryChanges' action.
* IFormattedMemoryBlock.java:
added the 'saveChanges' method.
* CFormattedMemoryBlock.java:
implementation of the 'saveChanges' method.
Index:
src/org/eclipse/cdt/debug/core/IFormattedMemoryBlock.java
===================================================================
RCS
file:
/home/tools/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/IFormattedMemoryBlock.java,v
retrieving
revision 1.11
diff -u -r1.11 IFormattedMemoryBlock.java
---
src/org/eclipse/cdt/debug/core/IFormattedMemoryBlock.java 30 Oct 2002
21:55:59 -0000 1.11
+++
src/org/eclipse/cdt/debug/core/IFormattedMemoryBlock.java 30 Oct 2002
23:35:37 -0000
@@ -128,4 +128,6 @@
boolean
isDirty();
void saveChanges() throws
DebugException;
+
+ void refresh() throws
DebugException;
}
Index:
src/org/eclipse/cdt/debug/internal/core/model/CFormattedMemoryBlock.java
===================================================================
RCS
file:
/home/tools/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CFormattedMemoryBlock.java,v
retrieving
revision 1.10
diff -u -r1.10 CFormattedMemoryBlock.java
---
src/org/eclipse/cdt/debug/internal/core/model/CFormattedMemoryBlock.java 30
Oct 2002 21:55:59 -0000 1.10
+++
src/org/eclipse/cdt/debug/internal/core/model/CFormattedMemoryBlock.java 30
Oct 2002 23:35:37 -0000
@@ -584,4 +584,22
@@
Arrays.fill( fDirtyBytes, false
);
}
}
+
+ /*
(non-Javadoc)
+ * @see
org.eclipse.cdt.debug.core.IFormattedMemoryBlock#refresh()
+
*/
+ public void refresh() throws
DebugException
+ {
+ if ( getCDIMemoryBlock() != null
)
+ {
+ try
+ {
+ getCDIMemoryBlock().refresh();
+ }
+ catch(
CDIException e
)
+ {
+ targetRequestFailed(
e.getMessage(), null
);
+ }
+ }
+ }
}