* @param frame owning stack frame
* @param name variable name
*/
- public XDebugVariable(XDebugStackFrame frame, Node property) {
+ public XDebugVariable(XDebugStackFrame frame, Node property) throws DebugException {
+ super((XDebugTarget) frame.getDebugTarget());
if (frame != null ) {
- //super((XDebugTarget) frame.getDebugTarget());
fFrame = frame;
}
fValue = new XDebugStringValue(frame, property);
else if (typeName.equals("array") )
fValue = new XDebugArrayValue(frame, property);
- else if (typeName.equals("hash") )
- fValue = new XDebugArrayValue(frame, property);
else if (typeName.equals("object") )
- fValue = new XDebugArrayValue(frame, property);
+ fValue = new XDebugObjectValue(frame, property);
else if (typeName.equals("resource") )
fValue = new XDebugResourceValue(frame, property);
else
* @see org.eclipse.debug.core.model.IVariable#getName()
*/
public String getName() throws DebugException {
- /*if (fFullName.endsWith("]"))
- return fFullName.substring(fFullName.lastIndexOf('['));
- else*/
- return fName;
+ return fName;
}
/* (non-Javadoc)
* @see org.eclipse.debug.core.model.IValueModification#verifyValue(java.lang.String)
*/
public boolean verifyValue(String expression) throws DebugException {
- return fValue.verifyValue(expression);
+ /*return true; */return fValue.verifyValue(expression);
}
/* (non-Javadoc)
return false;
}
- /**
- * Returns the stack frame owning this variable.
- *
- * @return the stack frame owning this variable
- */
- protected XDebugStackFrame getStackFrame() {
- return fFrame;
- }
-
public String getValueString() throws DebugException {
return fValue.getValueString();
}