X-Git-Url: http://git.phpeclipse.com diff --git a/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugObjectValue.java b/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugObjectValue.java index a7fdfca..1af871a 100644 --- a/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugObjectValue.java +++ b/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugObjectValue.java @@ -1,35 +1,38 @@ package net.sourceforge.phpeclipse.xdebug.php.model; +import net.sourceforge.phpeclipse.xdebug.core.PHPDebugUtils; + +import org.eclipse.debug.core.DebugException; +import org.eclipse.debug.core.model.IVariable; import org.w3c.dom.Node; +import org.w3c.dom.NodeList; public class XDebugObjectValue extends XDebugAbstractValue { - - public XDebugObjectValue(XDebugVariable variable, Node varNode, - String typeName) { - super(variable, varNode, typeName); - } - - public void setType(String typeName) { - fType=XDebugAbstractValue.VALUETYPE_OBJECT; - fTypeName=typeName; - + private int NumChildren; + + public XDebugObjectValue(XDebugStackFrame variable, Node value) throws DebugException { + super(variable, value); + + NumChildren = 0; + if (!PHPDebugUtils.getAttributeValue(value, "numchildren").equals("")) { + NumChildren = Integer.parseInt(PHPDebugUtils.getAttributeValue(value, "numchildren")); + } + + if (NumChildren > 0) { + NodeList property = value.getChildNodes(); + IVariable[] Variables = new IVariable[property.getLength()]; + + for (int i = 0; i