7df63ca9df4a945a7eaf502b0af3d4b76729cb7b
[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.eclipse.debug.core.DebugException;
4 import org.w3c.dom.Node;
5
6 public class XDebugFloatValue extends XDebugAbstractValue {
7         public XDebugFloatValue(XDebugStackFrame variable, Node value) throws DebugException {
8                 super(variable, value);
9         }
10         
11         public boolean supportsValueModification() {
12                 return true;
13         }
14
15         public void renderValueString(String data) {
16                 fValueString = data;
17         }
18
19         public boolean verifyValue(String expression) {
20                 try {
21                         Float.parseFloat(expression);
22                 } catch (NumberFormatException e) {
23                         return false;
24                 }
25                 return true;
26         }
27 }