import net.sourceforge.phpdt.ui.PreferenceConstants;
import net.sourceforge.phpdt.ui.text.java.hover.IJavaEditorTextHover;
+import net.sourceforge.phpeclipse.xdebug.php.model.XDebugAbstractValue;
import net.sourceforge.phpeclipse.xdebug.php.model.XDebugStackFrame;
import net.sourceforge.phpeclipse.xdebug.php.model.XDebugTarget;
import net.sourceforge.phpeclipse.xdebug.php.model.XDebugValue;
StringBuffer buffer = new StringBuffer();
try {
if (frameDBG != null) {
- variable = frameDBG.findVariable(variableName);
+ variable = frameDBG.findVariable (variableName);
}
else if (frameXD != null) {
- if (variableName.startsWith ("$")) {
- variable = frameXD.findVariable (variableName.substring (1));
- }
- else {
- variable = frameXD.findVariable (variableName);
- }
+ variable = frameXD.findVariable (variableName);
}
if (variable != null) {
if (value instanceof PHPValue)
return ((PHPValue) value).getReferenceTypeName();
- if (value instanceof XDebugValue)
- return ((XDebugValue) value).getReferenceTypeName ();
+ if (value instanceof XDebugAbstractValue)
+ return ((XDebugAbstractValue) value).getReferenceTypeName ();
return null;
}