Change variable view behaviour.
[phpeclipse.git] / net.sourceforge.phpeclipse.xdebug.core / src / net / sourceforge / phpeclipse / xdebug / php / model / XDebugArrayValue.java
1 package net.sourceforge.phpeclipse.xdebug.php.model;
2
3 import org.w3c.dom.Node;
4
5 public class XDebugArrayValue extends XDebugAbstractValue {
6
7         public XDebugArrayValue(XDebugVariable variable, Node varNode,
8                         String typeName) {
9                 super(variable, varNode, typeName);
10         }
11         
12         public XDebugArrayValue(XDebugVariable variable, String typeName) {
13                 super(variable, typeName);
14         }
15
16
17         public void setType(String typeName) {
18                 fType=XDebugAbstractValue.VALUETYPE_ARRAY;
19                 fTypeName=typeName;
20
21         }
22
23         public void renderValueString(String data) {
24                 if (data.equals("")) {
25                         fValueString = "empty";
26                 } else {
27                         if ("array".equals(fTypeName)) {
28                                 fValueString = "array";
29                         } else {
30                                 fValueString = data;
31                         }
32                 }
33         }
34
35         public boolean verifyValue(String expression) {
36                 // TODO Auto-generated method stub
37                 return false;
38         }
39
40         /*public String toString() {
41                 return null;
42         }*/
43 }