1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-24 09:25:31 +02:00

Added the 'hasValueChanged' method to 'CRegister'.

This commit is contained in:
Mikhail Khodjaiants 2002-10-10 22:29:59 +00:00
parent 099c9906e8
commit cede94d323
3 changed files with 19 additions and 1 deletions

View file

@ -1,3 +1,7 @@
2002-10-10 Mikhail Khodjaiants
* CVariable.java: Made the 'fChanged' field protected to access to it from the derived class (CRegister).
* CRegister.java: Added the 'hasValueChanged' method to 'CRegister'.
2002-10-10 Mikhail Khodjaiants
* CThread.java: Check if the selected frame is current before calling 'setCurrentStackFrame'.

View file

@ -9,6 +9,7 @@ import org.eclipse.cdt.debug.core.cdi.model.ICDIRegister;
import org.eclipse.debug.core.DebugException;
import org.eclipse.debug.core.model.IRegister;
import org.eclipse.debug.core.model.IRegisterGroup;
import org.eclipse.debug.core.model.IValue;
/**
*
@ -35,4 +36,17 @@ public class CRegister extends CGlobalVariable implements IRegister
{
return (IRegisterGroup)getParent();
}
/* (non-Javadoc)
* @see org.eclipse.debug.core.model.IVariable#hasValueChanged()
*/
public boolean hasValueChanged() throws DebugException
{
IValue value = getValue();
if ( value != null )
{
return ( value.hasVariables() ) ? false : fChanged;
}
return false;
}
}

View file

@ -56,7 +56,7 @@ public abstract class CVariable extends CDebugElement
/**
* Change flag.
*/
private boolean fChanged = false;
protected boolean fChanged = false;
/**
* The type name of this variable.