From d391011d826aeb1ff673d3438ab3b25a2a5a51d4 Mon Sep 17 00:00:00 2001 From: Mikhail Khodjaiants Date: Wed, 6 Aug 2003 20:51:19 +0000 Subject: [PATCH] Added the implementation of the 'getType' and 'getTypeName' methods of the 'CVaraible:ErrorVariable' class. --- debug/org.eclipse.cdt.debug.core/ChangeLog | 4 ++++ .../eclipse/cdt/debug/internal/core/model/CVariable.java | 6 ++---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/debug/org.eclipse.cdt.debug.core/ChangeLog b/debug/org.eclipse.cdt.debug.core/ChangeLog index ceaf5a330f9..a6a30d83c93 100644 --- a/debug/org.eclipse.cdt.debug.core/ChangeLog +++ b/debug/org.eclipse.cdt.debug.core/ChangeLog @@ -1,3 +1,7 @@ +2003-08-06 Mikhail Khodjaiants + Added the implementation of the 'getType' and 'getTypeName' methods of the 'CVaraible:ErrorVariable' class. + * CVariable.java + 2003-08-06 Mikhail Khodjaiants Uncommented the 'sizeof' method of 'ICDIVariableObject'. * ICDIVariableObject.java diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CVariable.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CVariable.java index 97593229b68..846fb15e46f 100644 --- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CVariable.java +++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CVariable.java @@ -89,8 +89,7 @@ public abstract class CVariable extends CDebugElement */ public String getTypeName() throws CDIException { - // TODO When the 'getType' method is moved to 'ICDIVariableObject' - return null; + return ( fVariableObject != null ) ? fVariableObject.getTypeName() : ""; } /* (non-Javadoc) @@ -98,8 +97,7 @@ public abstract class CVariable extends CDebugElement */ public ICDIType getType() throws CDIException { - // TODO When the 'getType' method is moved to 'ICDIVariableObject' - return null; + return ( fVariableObject != null ) ? fVariableObject.getType() : null; } /* (non-Javadoc)