Remove unnecessary explicit cast.
[phpeclipse.git] / net.sourceforge.phpeclipse.xdebug.core / src / net / sourceforge / phpeclipse / xdebug / php / model / XDebugArrayValue.java
index f0117cd..3745a14 100644 (file)
@@ -21,7 +21,15 @@ public class XDebugArrayValue extends XDebugAbstractValue {
        }
 
        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) {
@@ -29,4 +37,7 @@ public class XDebugArrayValue extends XDebugAbstractValue {
                return false;
        }
 
+       /*public String toString() {
+               return null;
+       }*/
 }