Initial implementation of the new Debug Plugin
[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
7         public XDebugFloatValue(XDebugVariable variable, Node varNode,String TypeName) {
8                 super(variable, varNode,TypeName);
9                 
10         }
11
12         public boolean supportsValueModification() {
13                 return true;
14         }
15
16         
17         public void setType(String typeName) {
18                 fType=XDebugAbstractValue.VALUETYPE_FLOAT;
19                 fTypeName=typeName;
20         }
21
22         public void renderValueString(String data) {
23                 fValueString=data;
24         }
25
26         public boolean verifyValue(String expression) {
27                 try {
28                         Float.parseFloat(expression);
29                 } catch (NumberFormatException e) {
30                         return false;
31                 }
32                 return true;
33         }
34
35 }