X-Git-Url: http://git.phpeclipse.com diff --git a/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugBooleanValue.java b/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugBooleanValue.java index 678a955..113f7c2 100644 --- a/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugBooleanValue.java +++ b/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugBooleanValue.java @@ -8,47 +8,51 @@ public class XDebugBooleanValue extends XDebugAbstractValue { String typeName) { super(variable, varNode, typeName); } + + public XDebugBooleanValue(XDebugVariable variable,String typeName) { + super(variable, typeName); + } + public boolean supportsValueModification() { return true; } public void setType(String typeName) { - fType = XDebugAbstractValue.VALUETYPE_BOOLEAN; - fTypeName = typeName; - } + fType=XDebugAbstractValue.VALUETYPE_BOOLEAN; + fTypeName=typeName; } public void renderValueString(String data) { - int value = -1; + int value=-1; try { - value = Integer.parseInt(data); + value=Integer.parseInt(data); } catch (NumberFormatException e) { - data = data.toLowerCase(); + data=data.toLowerCase(); if (data.equals("true") || data.equals("false")) - fValueString = data; + fValueString=data; else - fValueString = "not defined"; + fValueString="not defined"; } - if (value == 0) - fValueString = "false"; - else if (value == 1) - fValueString = "true"; + if (value==0) + fValueString="false"; + else if (value==1) + fValueString="true"; else - fValueString = "not defined"; + fValueString="not defined"; } public boolean verifyValue(String expression) { - int value = -1; + int value=-1; try { - value = Integer.parseInt(expression); + value=Integer.parseInt(expression); } catch (NumberFormatException e) { - expression = expression.toLowerCase(); + expression=expression.toLowerCase(); if (expression.equals("true") || expression.equals("false")) return true; else return false; } - if ((value >= 0) && (value <= 1)) + if ((value>=0)&& (value <=1)) return true; return false; }