1 package net.sourceforge.phpeclipse.xdebug.php.model;
3 import net.sourceforge.phpeclipse.xdebug.core.Base64;
4 import net.sourceforge.phpeclipse.xdebug.core.PHPDebugUtils;
6 import org.eclipse.debug.core.DebugEvent;
7 import org.eclipse.debug.core.DebugException;
8 import org.w3c.dom.Node;
10 public class XDebugStringValue extends XDebugAbstractValue {
11 public XDebugStringValue(XDebugStackFrame variable, Node value) throws DebugException {
12 super(variable, value);
14 String encoding = PHPDebugUtils.getAttributeValue(value, "encoding");
15 if (encoding.equals("base64")) {
16 rowValue = new String(Base64.decode(rowValue));
19 setValueString(rowValue);
22 public boolean setValue(String expression) throws DebugException {
23 setValueString(expression);
24 fireEvent(new DebugEvent(this, DebugEvent.CHANGE, DebugEvent.CONTENT));
28 public boolean supportsValueModification() {