mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-04 14:55:41 +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
|
||||
Mark as changed parent variables.
|
||||
* CVariable.java
|
||||
|
|
|
@ -20,7 +20,7 @@ public interface ICVariable extends IVariable
|
|||
|
||||
void setFormat( int format ) throws DebugException;
|
||||
|
||||
void refresh() throws DebugException;
|
||||
void reset() throws DebugException;
|
||||
|
||||
boolean isEditable();
|
||||
|
||||
|
|
|
@ -557,4 +557,14 @@ public class CValue extends CDebugElement implements ICValue
|
|||
}
|
||||
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 );
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue