1 package net.sourceforge.phpeclipse.xdebug.php.model;
3 import org.eclipse.debug.core.DebugEvent;
4 import org.eclipse.debug.core.DebugException;
5 import org.w3c.dom.Node;
7 public class XDebugIntValue extends XDebugAbstractValue {
8 public XDebugIntValue(XDebugStackFrame stackFrame, Node value) throws DebugException {
9 super(stackFrame, value);
11 if (isValid(rowValue)) {
12 setValueString(rowValue);
16 public boolean supportsValueModification() {
20 public boolean setValue(String expression) throws DebugException {
21 if (isValid(expression)) {
22 setValueString(expression);
23 fireEvent(new DebugEvent(this, DebugEvent.CHANGE, DebugEvent.CONTENT));
30 private boolean isValid(String expression) {
32 Integer.parseInt(expression);
33 } catch (NumberFormatException e) {
39 public boolean verifyValue(String expression) {
40 return isValid(expression);