From: <ed...@ed...> - 2011-03-16 20:06:32
|
Author: robekras Date: 2011-03-16 15:02:23 -0500 (Wed, 16 Mar 2011) New Revision: 1770 Modified: trunk/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugAbstractValue.java trunk/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugStackFrame.java Log: 1) Need to syncronize also the type of variable values not only the values (makes variable hover working). Modified: trunk/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugAbstractValue.java =================================================================== --- trunk/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugAbstractValue.java 2011-03-16 19:59:21 UTC (rev 1769) +++ trunk/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugAbstractValue.java 2011-03-16 20:02:23 UTC (rev 1770) @@ -144,4 +144,8 @@ protected void setChildren(IVariable[] newChildren) { fVariables = new Vector (Arrays.asList(newChildren)); } + + public void setReferenceTypeName (String referenceTypeName) { + fTypeName = referenceTypeName; + } } Modified: trunk/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugStackFrame.java =================================================================== --- trunk/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugStackFrame.java 2011-03-16 19:59:21 UTC (rev 1769) +++ trunk/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugStackFrame.java 2011-03-16 20:02:23 UTC (rev 1770) @@ -211,6 +211,7 @@ if (!valOld.getValueString().equals( valNew.getValueString())) { // Has the value changed? valOld.setValueString(valNew.getValueString()); // Yes, set the 'static' value (variable) to the new value + valOld.setReferenceTypeName (valNew.getReferenceTypeName ()); varOld.setValueChanged(true); // and set the 'has changed' flag, so that the variable view // could show the user the changed status with a different // color |