Modified: 1764120 - Variables View doesn't show global vars in class context
[phpeclipse.git] / net.sourceforge.phpeclipse.debug.core / src / net / sourceforge / phpdt / internal / debug / core / model / PHPVariable.java
index e452669..94d3c99 100644 (file)
@@ -297,7 +297,6 @@ public class PHPVariable implements IVariable {
         * with a type specific explanation.
         */
        public String toString() {
-               int type = -1;
                String str = "";
 
                switch (getReferenceType()) {
@@ -335,4 +334,19 @@ public class PHPVariable implements IVariable {
 
                return str;
        }
+
+       /*
+        * ONLY FOR net.sourceforge.phpdt.internal.debug.core.model.PHPDBGEvalString#copyItems(PHPVariable, PHPValue)
+        */
+       protected Object clone() throws CloneNotSupportedException {
+               PHPVariable var = new PHPVariable();
+               var.fValue = fValue;
+               var.fName = fName;
+               var.fStackFrame = fStackFrame;
+               var.fParent = fParent;
+               var.fLongName = fLongName;
+               var.fModifiable = fModifiable;
+               return var;
+       }
+
 }