1) Made setName a public method. (For the 'unnamed root node' workaround see PHPDBGIn...
[phpeclipse.git] / net.sourceforge.phpeclipse.debug.core / src / net / sourceforge / phpdt / internal / debug / core / model / PHPVariable.java
index 0cdad2a..91b2a78 100644 (file)
@@ -32,7 +32,6 @@ public class PHPVariable implements IVariable {
        private PHPStackFrame   fStackFrame;                            // The stackframe this variable belongs to
        private PHPVariable     fParent;                                // The parent variable (a back link)
        private String                  fLongName;                              // ???
-       private boolean         fHasChanged;                                                    //
 
        /**
         *
@@ -55,7 +54,6 @@ public class PHPVariable implements IVariable {
                this.fStackFrame = frame;
                this.fValue      = new PHPValue (frame, value, valueType, subitems);
                this.fParent     = parent;
-               this.fHasChanged = false;
 
                setName (name);
        }
@@ -64,7 +62,7 @@ public class PHPVariable implements IVariable {
         *
         * @param name
         */
-       private void setName (String name) {
+       public void setName (String name) {
                if ((fParent == null) ||                                                                        // If we have no parent for this variable
                    (fParent.getName () == "")) {                           //  or we have a parent which is just a simple node ???
                        fLongName = name;                                       // Set the long name
@@ -154,9 +152,7 @@ public class PHPVariable implements IVariable {
         * @see org.eclipse.debug.core.model.IVariable#hasValueChanged()
         */
        public boolean hasValueChanged() throws DebugException {
-               // TODO Auto-generated method stub
-               // return false;
-               return fHasChanged;
+               return fValue.hasValueChanged ();
        }
 
        /**
@@ -167,7 +163,7 @@ public class PHPVariable implements IVariable {
         *                a different color.
         */
        public void setValueChanged (boolean changed) {
-               fHasChanged = changed;
+               fValue.setValueChanged (changed);
        }
 
     /**