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:
parent
ee3a8df6fd
commit
6f1a249cc3
1 changed files with 16 additions and 0 deletions
|
@ -21,6 +21,7 @@ public class MemoryBlock extends CObject implements ICDIMemoryBlock {
|
|||
MIDataReadMemoryInfo mem;
|
||||
String expression;
|
||||
boolean frozen;
|
||||
boolean dirty;
|
||||
|
||||
public MemoryBlock(CTarget target, String exp, MIDataReadMemoryInfo info) {
|
||||
super(target);
|
||||
|
@ -74,6 +75,20 @@ public class MemoryBlock extends CObject implements ICDIMemoryBlock {
|
|||
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()
|
||||
*/
|
||||
|
@ -99,6 +114,7 @@ public class MemoryBlock extends CObject implements ICDIMemoryBlock {
|
|||
*/
|
||||
public void refresh() throws CDIException {
|
||||
MemoryManager mgr = (MemoryManager)getCTarget().getCSession().getMemoryManager();
|
||||
setDirty(true);
|
||||
mgr.update(this, null);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue