mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-04 14:55:41 +02:00
Added the 'hasValueChanged' method to 'CRegister'.
This commit is contained in:
parent
099c9906e8
commit
cede94d323
3 changed files with 19 additions and 1 deletions
|
@ -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
|
2002-10-10 Mikhail Khodjaiants
|
||||||
* CThread.java: Check if the selected frame is current before calling 'setCurrentStackFrame'.
|
* CThread.java: Check if the selected frame is current before calling 'setCurrentStackFrame'.
|
||||||
|
|
||||||
|
|
|
@ -9,6 +9,7 @@ import org.eclipse.cdt.debug.core.cdi.model.ICDIRegister;
|
||||||
import org.eclipse.debug.core.DebugException;
|
import org.eclipse.debug.core.DebugException;
|
||||||
import org.eclipse.debug.core.model.IRegister;
|
import org.eclipse.debug.core.model.IRegister;
|
||||||
import org.eclipse.debug.core.model.IRegisterGroup;
|
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();
|
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;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -56,7 +56,7 @@ public abstract class CVariable extends CDebugElement
|
||||||
/**
|
/**
|
||||||
* Change flag.
|
* Change flag.
|
||||||
*/
|
*/
|
||||||
private boolean fChanged = false;
|
protected boolean fChanged = false;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The type name of this variable.
|
* The type name of this variable.
|
||||||
|
|
Loading…
Add table
Reference in a new issue