Importing the XDebugProxy code in the HEAD. The repo was tagged with T_BEFORE_XDEBUGP...
[phpeclipse.git] / net.sourceforge.phpeclipse.xdebug.core / src / net / sourceforge / phpeclipse / xdebug / php / model / XDebugResourceValue.java
diff --git a/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugResourceValue.java b/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugResourceValue.java
new file mode 100644 (file)
index 0000000..2ce4f1c
--- /dev/null
@@ -0,0 +1,40 @@
+package net.sourceforge.phpeclipse.xdebug.php.model;
+
+import org.w3c.dom.Node;
+
+public class XDebugResourceValue extends XDebugAbstractValue {
+       private String fDataString;
+       
+       public XDebugResourceValue(XDebugVariable variable, Node varNode, String typeName) {
+               super(variable, varNode, typeName);
+               fDataString=null;
+       }
+       
+       public XDebugResourceValue(XDebugVariable variable, String typeName) {
+               super(variable, typeName);
+               fDataString=null;
+       }
+
+
+       public void setType(String typeName) {
+               fType = XDebugAbstractValue.VALUETYPE_RESOURCE;
+               fTypeName = typeName;
+       }
+
+       public void renderValueString(String data) {
+               fDataString = data;
+               fValueString = "\""+data+"\"";
+       }
+
+       public boolean supportsValueModification() {
+               return true;
+       }
+       
+       public String toString() {
+               return fDataString;
+       }
+
+       public boolean verifyValue(String expression) {
+               return true;
+       }
+}
\ No newline at end of file