* @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;
}
* @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#setValue(java.lang.String)
*/
public void setValue(String expression) throws DebugException {
- if(fValue.setValue(expression)) {
-
+ if (fFrame.setVariableValue(this, expression)) {
+ fValue.setValue(expression);
}
- //fireEvent(new DebugEvent(this, DebugEvent.CHANGE, DebugEvent.CONTENT));
- //fValue.setValueA(expression);
}
/* (non-Javadoc)
* @see org.eclipse.debug.core.model.IValueModification#setValue(org.eclipse.debug.core.model.IValue)
*/
public void setValue(IValue value) throws DebugException {
- //fValue.setValueB(value);
}
/* (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();
}