X-Git-Url: http://git.phpeclipse.com diff --git a/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugFloatValue.java b/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugFloatValue.java index 990e371..fd2e709 100644 --- a/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugFloatValue.java +++ b/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugFloatValue.java @@ -1,22 +1,37 @@ package net.sourceforge.phpeclipse.xdebug.php.model; +import org.eclipse.debug.core.DebugEvent; import org.eclipse.debug.core.DebugException; import org.w3c.dom.Node; public class XDebugFloatValue extends XDebugAbstractValue { - public XDebugFloatValue(XDebugStackFrame variable, Node value) throws DebugException { - super(variable, value); + public XDebugFloatValue(XDebugStackFrame stackFrame, Node value) throws DebugException { + super(stackFrame, value); + + if (isValid(rowValue)) { + setValueString(rowValue); + } } public boolean supportsValueModification() { return true; } - public void renderValueString(String data) { - setValueString(data)/*fValueString = data*/; + public boolean setValue(String expression) throws DebugException { + if (isValid(expression)) { + setValueString(expression); + fireEvent(new DebugEvent(this, DebugEvent.CHANGE, DebugEvent.CONTENT)); + return true; + } + + return false; } public boolean verifyValue(String expression) { + return isValid(expression); + } + + private boolean isValid(String expression) { try { Float.parseFloat(expression); } catch (NumberFormatException e) {