mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-01 13:25:45 +02:00
Implementation of 'hasVariables' function.
This commit is contained in:
parent
fd0b0a20fe
commit
b128851cc3
1 changed files with 10 additions and 0 deletions
|
@ -85,6 +85,16 @@ public class CValue extends CDebugElement implements IValue
|
||||||
*/
|
*/
|
||||||
public boolean hasVariables() throws DebugException
|
public boolean hasVariables() throws DebugException
|
||||||
{
|
{
|
||||||
|
try
|
||||||
|
{
|
||||||
|
ICDIValue value = getUnderlyingValue();
|
||||||
|
if ( value != null )
|
||||||
|
return value.hasChildren();
|
||||||
|
}
|
||||||
|
catch( CDIException e )
|
||||||
|
{
|
||||||
|
targetRequestFailed( "Operation failed. Reason: ", e );
|
||||||
|
}
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue