1
0
Fork 0
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:
Mikhail Khodjaiants 2003-06-06 21:54:08 +00:00
parent 6250bf1be7
commit 30aeec572e
2 changed files with 6 additions and 13 deletions

View file

@ -1,3 +1,7 @@
2003-06-06 Mikhail Khodjaiants
Mark as changed parent variables.
* CVariable.java
2003-06-06 Mikhail Khodjaiants 2003-06-06 Mikhail Khodjaiants
Refresh only the state of variable when handling a change event. Refresh only the state of variable when handling a change event.
* CVariable.java * CVariable.java

View file

@ -138,15 +138,7 @@ public abstract class CVariable extends CDebugElement
*/ */
public boolean hasValueChanged() throws DebugException public boolean hasValueChanged() throws DebugException
{ {
// ?? return fChanged;
if ( isPointer() )
return false;
IValue value = getValue();
if ( value != null )
{
return ( value.hasVariables() ) ? false : fChanged;
}
return false;
} }
/* (non-Javadoc) /* (non-Javadoc)
@ -282,11 +274,8 @@ public abstract class CVariable extends CDebugElement
{ {
if ( getValue() != null && getValue() instanceof ICValue ) if ( getValue() != null && getValue() instanceof ICValue )
{ {
fChanged = changed;
((ICValue)getValue()).setChanged( changed ); ((ICValue)getValue()).setChanged( changed );
if ( !hasChildren() )
{
fChanged = changed;
}
} }
} }