f45eaa8450dabc1c039d7fdede97fb699ffff644
[phpeclipse.git] / net.sourceforge.phpeclipse.xdebug.core / src / net / sourceforge / phpeclipse / xdebug / php / model / XDebugIntValue.java
1 package net.sourceforge.phpeclipse.xdebug.php.model;
2
3 import org.eclipse.debug.core.DebugException;
4 import org.w3c.dom.Node;
5
6 public class XDebugIntValue extends XDebugAbstractValue {
7         public XDebugIntValue(XDebugStackFrame frame, Node value) throws DebugException {
8                 super(frame, value);
9         }
10         
11         public boolean supportsValueModification() {
12                 return true;
13         }
14                 
15         public void renderValueString(String dataString) {
16                 setValueString(dataString)/*fValueString = dataString*/;
17         }
18         
19         public boolean verifyValue(String expression) {
20                 try {
21                         Integer.parseInt(expression);
22                 } catch (NumberFormatException e) {
23                         return false;
24                 }
25                 return true;
26         }
27 }