Change visibility of net.sourceforge.phpeclipse.xdebug.php.model.XDebugAbstractValue...
[phpeclipse.git] / net.sourceforge.phpeclipse.xdebug.core / src / net / sourceforge / phpeclipse / xdebug / php / model / XDebugArrayValue.java
index cded934..7a1dbad 100644 (file)
@@ -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) {
-               if (data.isEmpty()) {
-                       fValueString = /*"Array */"empty";
+       public void renderValueString(String data) throws DebugException  {
+               if (data.equals("")) {
+                       setValueString("empty")/*fValueString = "empty"*/;
                } else {
-                       fValueString = /*"Array " + */data + " element(s)";                     
+                       if ("array".equals(getReferenceTypeName())) {
+                               setValueString("array")/*fValueString = "array"*/;
+                       } else {
+                               setValueString(data)/*fValueString = data*/;
+                       }
                }
        }
 
        public boolean verifyValue(String expression) {
-               // TODO Auto-generated method stub
                return false;
        }
-
-}
+}
\ No newline at end of file