X-Git-Url: http://git.phpeclipse.com diff --git a/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugAbstractValue.java b/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugAbstractValue.java index 9a68c77..eb91e5b 100644 --- a/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugAbstractValue.java +++ b/net.sourceforge.phpeclipse.xdebug.core/src/net/sourceforge/phpeclipse/xdebug/php/model/XDebugAbstractValue.java @@ -5,15 +5,12 @@ */ package net.sourceforge.phpeclipse.xdebug.php.model; -import net.sourceforge.phpeclipse.xdebug.core.Base64; import net.sourceforge.phpeclipse.xdebug.core.PHPDebugUtils; -import org.eclipse.debug.core.DebugEvent; import org.eclipse.debug.core.DebugException; import org.eclipse.debug.core.model.IValue; import org.eclipse.debug.core.model.IVariable; import org.w3c.dom.Node; -import org.w3c.dom.NodeList; /** * @author Axel @@ -22,52 +19,26 @@ import org.w3c.dom.NodeList; * Window - Preferences - Java - Code Style - Code Templates */ -public abstract class XDebugAbstractValue extends XDebugElement implements IValue { +public /*abstract*/ class XDebugAbstractValue extends XDebugElement implements IValue { private IVariable[] fVariables; - protected String fValueString; - /*protected*/private String fTypeName; + private String fValueString; + private String fTypeName; private boolean fhasChanged; + protected String rowValue; + + public XDebugAbstractValue(XDebugStackFrame frame, Node value) throws DebugException { + super(frame == null ? null : (XDebugTarget)frame.getDebugTarget()); - public XDebugAbstractValue(XDebugStackFrame frame, Node varNode) throws DebugException { - super((XDebugTarget) frame.getDebugTarget()); - - fTypeName = PHPDebugUtils.getAttributeValue(varNode,"type"); - - int NumChildren = 0; - if (!PHPDebugUtils.getAttributeValue(varNode,"numchildren").equals("")) { - NumChildren = Integer.parseInt(PHPDebugUtils.getAttributeValue(varNode, "numchildren")); - } - - if (NumChildren > 0) { - NodeList property = varNode.getChildNodes(); - renderValueString(""+property.getLength()); - fVariables = new IVariable[property.getLength()]; - for (int i = 0; i 0); } - public abstract void renderValueString(String data) throws DebugException; - - public abstract boolean verifyValue(String expression); - public boolean setValue(String expression) throws DebugException { - if (!verifyValue(expression)) { - return false; - } - - renderValueString(expression); - fireEvent(new DebugEvent(this, DebugEvent.CHANGE, DebugEvent.CONTENT)); - + return true; + }; + + protected boolean verifyValue(String expression) { return true; } - public boolean supportsValueModification() { + protected boolean supportsValueModification() { return false; } + + protected void setValueString(String valueString) { + fValueString = valueString; + } + + protected void setChildren(IVariable[] newChildren) { + fVariables = newChildren; + } } \ No newline at end of file