Whole refactor.
[phpeclipse.git] / net.sourceforge.phpeclipse.xdebug.core / src / net / sourceforge / phpeclipse / xdebug / php / model / XDebugFloatValue.java
1 package net.sourceforge.phpeclipse.xdebug.php.model;
2
3 import org.w3c.dom.Node;
4
5 public class XDebugFloatValue extends XDebugAbstractValue {
6         public XDebugFloatValue(XDebugStackFrame variable, Node value) {
7                 super(variable, value);
8         }
9         
10         public boolean supportsValueModification() {
11                 return true;
12         }
13
14         public void renderValueString(String data) {
15                 fValueString = data;
16         }
17
18         public boolean verifyValue(String expression) {
19                 try {
20                         Float.parseFloat(expression);
21                 } catch (NumberFormatException e) {
22                         return false;
23                 }
24                 return true;
25         }
26 }