X-Git-Url: http://git.phpeclipse.com diff --git a/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugArrayValue.java b/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugArrayValue.java index 1eb7c45..128bd64 100644 --- a/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugArrayValue.java +++ b/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugArrayValue.java @@ -1,36 +1,26 @@ package net.sourceforge.phpeclipse.xdebug.php.model; +import org.eclipse.debug.core.DebugException; import org.w3c.dom.Node; public class XDebugArrayValue extends XDebugAbstractValue { - - public XDebugArrayValue(XDebugVariable variable, Node varNode, - String typeName) { - super(variable, varNode, typeName); - } - - public XDebugArrayValue(XDebugVariable variable, String typeName) { - super(variable, typeName); + public XDebugArrayValue(XDebugStackFrame variable, Node value) throws DebugException { + super(variable, value); } - - public void setType(String typeName) { - fType=XDebugAbstractValue.VALUETYPE_ARRAY; - fTypeName=typeName; - - } - - public void renderValueString(String data) { + public void renderValueString(String data) throws DebugException { if (data.equals("")) { - fValueString = /*"Array */"empty"; + fValueString = "empty"; } else { - fValueString = /*"Array " + */data + " element(s)"; + if ("array".equals(getReferenceTypeName())) { + fValueString = "array"; + } else { + fValueString = data; + } } } public boolean verifyValue(String expression) { - // TODO Auto-generated method stub return false; } - -} +} \ No newline at end of file