mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-04 23:05:47 +02:00
Renamed the 'refresh' method of ICVariable to 'reset'. Added new method - 'reset' to CValue instead of using the 'setChanged' method.
This commit is contained in:
parent
30aeec572e
commit
198153d7e6
4 changed files with 21 additions and 4 deletions
|
@ -1,3 +1,10 @@
|
||||||
|
2003-06-09 Mikhail Khodjaiants
|
||||||
|
Renamed the 'refresh' method of ICVariable to 'reset'. Added new method -
|
||||||
|
'reset' to CValue instead of using the 'setChanged' method.
|
||||||
|
* ICVariable.java
|
||||||
|
* CValue.java
|
||||||
|
* CVariable.java
|
||||||
|
|
||||||
2003-06-06 Mikhail Khodjaiants
|
2003-06-06 Mikhail Khodjaiants
|
||||||
Mark as changed parent variables.
|
Mark as changed parent variables.
|
||||||
* CVariable.java
|
* CVariable.java
|
||||||
|
|
|
@ -20,7 +20,7 @@ public interface ICVariable extends IVariable
|
||||||
|
|
||||||
void setFormat( int format ) throws DebugException;
|
void setFormat( int format ) throws DebugException;
|
||||||
|
|
||||||
void refresh() throws DebugException;
|
void reset() throws DebugException;
|
||||||
|
|
||||||
boolean isEditable();
|
boolean isEditable();
|
||||||
|
|
||||||
|
|
|
@ -557,4 +557,14 @@ public class CValue extends CDebugElement implements ICValue
|
||||||
}
|
}
|
||||||
return valueString;
|
return valueString;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
protected void reset() throws DebugException
|
||||||
|
{
|
||||||
|
fValueString = null;
|
||||||
|
Iterator it = fVariables.iterator();
|
||||||
|
while( it.hasNext() )
|
||||||
|
{
|
||||||
|
((CVariable)it.next()).reset();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -411,11 +411,11 @@ public abstract class CVariable extends CDebugElement
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @see org.eclipse.cdt.debug.core.model.ICVariable#refresh()
|
* @see org.eclipse.cdt.debug.core.model.ICVariable#reset()
|
||||||
*/
|
*/
|
||||||
public void refresh() throws DebugException
|
public void reset() throws DebugException
|
||||||
{
|
{
|
||||||
((ICValue)getValue()).setChanged( true );
|
((CValue)getValue()).reset();
|
||||||
fireChangeEvent( DebugEvent.STATE );
|
fireChangeEvent( DebugEvent.STATE );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue