1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

Two new methods isDirty() and setDirty().

This commit is contained in:
Alain Magloire 2002-10-31 00:15:26 +00:00
parent ee3a8df6fd
commit 6f1a249cc3

View file

@ -21,6 +21,7 @@ public class MemoryBlock extends CObject implements ICDIMemoryBlock {
MIDataReadMemoryInfo mem; MIDataReadMemoryInfo mem;
String expression; String expression;
boolean frozen; boolean frozen;
boolean dirty;
public MemoryBlock(CTarget target, String exp, MIDataReadMemoryInfo info) { public MemoryBlock(CTarget target, String exp, MIDataReadMemoryInfo info) {
super(target); super(target);
@ -74,6 +75,20 @@ public class MemoryBlock extends CObject implements ICDIMemoryBlock {
return false; return false;
} }
/**
* Use by the EventManager to check fire events when doing refresh().
*/
public boolean isDirty() {
return dirty;
}
/**
* Use by the EventManager to check fire events when doing refresh().
*/
public void setDirty(boolean d) {
dirty = d;
}
/** /**
* @see org.eclipse.cdt.debug.core.cdi.model.ICDIMemoryBlock#getBytes() * @see org.eclipse.cdt.debug.core.cdi.model.ICDIMemoryBlock#getBytes()
*/ */
@ -99,6 +114,7 @@ public class MemoryBlock extends CObject implements ICDIMemoryBlock {
*/ */
public void refresh() throws CDIException { public void refresh() throws CDIException {
MemoryManager mgr = (MemoryManager)getCTarget().getCSession().getMemoryManager(); MemoryManager mgr = (MemoryManager)getCTarget().getCSession().getMemoryManager();
setDirty(true);
mgr.update(this, null); mgr.update(this, null);
} }