1
0
Fork 0
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:
Mikhail Khodjaiants 2003-06-09 15:45:07 +00:00
parent 30aeec572e
commit 198153d7e6
4 changed files with 21 additions and 4 deletions

View file

@ -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

View file

@ -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();

View file

@ -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();
}
}
}

View file

@ -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 );
}