Fix variable view value modification and refactored XDebugAbstractValue and derived...
[phpeclipse.git] / net.sourceforge.phpeclipse.xdebug.core / src / net / sourceforge / phpeclipse / xdebug / php / model / XDebugStringValue.java
1 package net.sourceforge.phpeclipse.xdebug.php.model;
2
3 import net.sourceforge.phpeclipse.xdebug.core.Base64;
4
5 import org.eclipse.debug.core.DebugEvent;
6 import org.eclipse.debug.core.DebugException;
7 import org.w3c.dom.Node;
8
9 public class XDebugStringValue extends XDebugAbstractValue {
10         public XDebugStringValue(XDebugStackFrame variable, Node value) throws DebugException {
11                 super(variable, value);
12
13                 rowValue = new String(Base64.decode(rowValue));
14
15                 setValueString(rowValue);
16         }
17
18         public boolean setValue(String expression) throws DebugException {
19                 setValueString(expression);
20                 fireEvent(new DebugEvent(this, DebugEvent.CHANGE, DebugEvent.CONTENT));
21                 return true;
22         }
23
24         public boolean supportsValueModification() {
25                 return true;
26         }
27 }