*/
public void setValue(String expression) throws DebugException {
PHPDebugTarget debugTarget = (PHPDebugTarget) getDebugTarget();
ExpressionsManager expressionManager = debugTarget
.getExpressionManager();
Expression changeVar = variable;
if (global) {
String exp = "$GLOBALS[\"" + variable.getFullName().substring(1) //$NON-NLS-1$
+ "\"]"; //$NON-NLS-1$
changeVar = new DefaultExpression(exp);
}
boolean status = expressionManager
.assignValue(changeVar, expression, 1);
if (!status) {
Logger.debugMSG("[" + this //$NON-NLS-1$
+ "] PHPValue: Problem changing variable value"); //$NON-NLS-1$
}
expressionManager.update(changeVar, 1);
value.updateValue(changeVar.getValue());
fireChangeEvent(DebugEvent.CONTENT);
}