From a49e6e74b4371be5460825e8db08e9d82d06d1cd Mon Sep 17 00:00:00 2001 From: robekras Date: Wed, 16 Mar 2011 20:02:23 +0000 Subject: [PATCH] 1) Need to syncronize also the type of variable values not only the values (makes variable hover working). --- .../xdebug/php/model/XDebugAbstractValue.java | 4 ++++ .../xdebug/php/model/XDebugStackFrame.java | 1 + 2 files changed, 5 insertions(+), 0 deletions(-) diff --git a/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugAbstractValue.java b/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugAbstractValue.java index df5c92a..3912916 100644 --- a/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugAbstractValue.java +++ b/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugAbstractValue.java @@ -144,4 +144,8 @@ public /*abstract*/ class XDebugAbstractValue extends XDebugElement implements protected void setChildren(IVariable[] newChildren) { fVariables = new Vector (Arrays.asList(newChildren)); } + + public void setReferenceTypeName (String referenceTypeName) { + fTypeName = referenceTypeName; + } } diff --git a/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugStackFrame.java b/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugStackFrame.java index ece1a54..a1c9ab4 100644 --- a/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugStackFrame.java +++ b/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugStackFrame.java @@ -211,6 +211,7 @@ public class XDebugStackFrame extends XDebugElement implements IStackFrame, Com 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 -- 1.7.1