More refactory.
[phpeclipse.git] / net.sourceforge.phpeclipse.xdebug.core / src / net / sourceforge / phpeclipse / xdebug / php / model / XDebugArrayValue.java
index f0117cd..41349a9 100644 (file)
@@ -3,30 +3,23 @@ package net.sourceforge.phpeclipse.xdebug.php.model;
 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 void setType(String typeName) {
-               fType=XDebugAbstractValue.VALUETYPE_ARRAY;
-               fTypeName=typeName;
-
+       public XDebugArrayValue(XDebugStackFrame variable, Node value) {
+               super(variable, value);
        }
 
        public void renderValueString(String data) {
-               fValueString= data +" element(s)";
+               if (data.equals("")) {
+                       fValueString = "empty";
+               } else {
+                       if ("array".equals(fTypeName)) {
+                               fValueString = "array";
+                       } else {
+                               fValueString = data;
+                       }
+               }
        }
 
        public boolean verifyValue(String expression) {
-               // TODO Auto-generated method stub
                return false;
        }
-
-}
+}
\ No newline at end of file