Remove unused methods: net.sourceforge.phpeclipse.xdebug.php.model.XDebugVariable...
[phpeclipse.git] / net.sourceforge.phpeclipse.xdebug.core / src / net / sourceforge / phpeclipse / xdebug / php / model / XDebugVariable.java
index 8a563cf..d0e9062 100644 (file)
@@ -14,7 +14,7 @@ import org.eclipse.debug.core.DebugEvent;
 import org.eclipse.debug.core.model.IValue;
 import org.eclipse.debug.core.model.IVariable;
 import org.w3c.dom.Node;
-import org.eclipse.debug.core.model.IWatchExpressionDelegate;
+//import org.eclipse.debug.core.model.IWatchExpressionDelegate;
 /**
  * @author Axel
  *
@@ -22,7 +22,7 @@ import org.eclipse.debug.core.model.IWatchExpressionDelegate;
  * Window - Preferences - Java - Code Style - Code Templates
  */
 public class XDebugVariable  extends XDebugElement implements IVariable/*, IWatchExpressionFactoryAdapter*/ {
-       public static final int VARTYPE_UNKNOWN = -1;
+       /*public static final int VARTYPE_UNKNOWN = -1;
        public static final int VARTYPE_UNINITIALIZED = 0;
        public static final int VARTYPE_STRING = 1;
        public static final int VARTYPE_INT = 2;
@@ -30,7 +30,7 @@ public class XDebugVariable  extends XDebugElement implements IVariable/*, IWatc
        public static final int VARTYPE_ARRAY = 8;
        public static final int VARTYPE_HASH = 9;
        public static final int VARTYPE_OBJECT = 10;
-       public static final int VARTYPE_RESOURCE = 11;
+       public static final int VARTYPE_RESOURCE = 11;*/
        
        private int fNumChildren;
        private String fName;
@@ -88,6 +88,8 @@ public class XDebugVariable  extends XDebugElement implements IVariable/*, IWatc
                        fValue= new XDebugArrayValue(this,property,typeName);
                else if (typeName.equals("object") )
                        fValue= new XDebugArrayValue(this,property,typeName);
+               else if (typeName.equals("resource") )
+                       fValue= new XDebugResourceValue(this, property, typeName);
                else
                        fValue= new XDebugValue(this,property,typeName);
        }
@@ -170,11 +172,6 @@ public class XDebugVariable  extends XDebugElement implements IVariable/*, IWatc
                return fFrame;
        }
        
-       public void setStackFrame(XDebugStackFrame frame) {
-               fFrame = frame;
-               super.setDebugTarget((XDebugTarget) frame.getDebugTarget());
-       }
-
 //     public int getType() {
 //             return fType;
 //     }
@@ -208,7 +205,7 @@ public class XDebugVariable  extends XDebugElement implements IVariable/*, IWatc
        }
        
        public String toString() {
-               return fValue.toString();
+               return null;
        }
 
        public String getFullName() {