mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Mark as changed parent variables.
This commit is contained in:
parent
6250bf1be7
commit
30aeec572e
2 changed files with 6 additions and 13 deletions
|
@ -1,3 +1,7 @@
|
|||
2003-06-06 Mikhail Khodjaiants
|
||||
Mark as changed parent variables.
|
||||
* CVariable.java
|
||||
|
||||
2003-06-06 Mikhail Khodjaiants
|
||||
Refresh only the state of variable when handling a change event.
|
||||
* CVariable.java
|
||||
|
|
|
@ -138,15 +138,7 @@ public abstract class CVariable extends CDebugElement
|
|||
*/
|
||||
public boolean hasValueChanged() throws DebugException
|
||||
{
|
||||
// ??
|
||||
if ( isPointer() )
|
||||
return false;
|
||||
IValue value = getValue();
|
||||
if ( value != null )
|
||||
{
|
||||
return ( value.hasVariables() ) ? false : fChanged;
|
||||
}
|
||||
return false;
|
||||
return fChanged;
|
||||
}
|
||||
|
||||
/* (non-Javadoc)
|
||||
|
@ -281,12 +273,9 @@ public abstract class CVariable extends CDebugElement
|
|||
protected synchronized void setChanged( boolean changed ) throws DebugException
|
||||
{
|
||||
if ( getValue() != null && getValue() instanceof ICValue )
|
||||
{
|
||||
((ICValue)getValue()).setChanged( changed );
|
||||
if ( !hasChildren() )
|
||||
{
|
||||
fChanged = changed;
|
||||
}
|
||||
((ICValue)getValue()).setChanged( changed );
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue