Package org.eclipse.php.internal.debug.core.zend.debugger

Examples of org.eclipse.php.internal.debug.core.zend.debugger.ExpressionsManager


    return fChildren;
  }

  private void requestVariables() {
    PHPDebugTarget debugTarget = (PHPDebugTarget) getDebugTarget();
    ExpressionsManager expressionManager = debugTarget
        .getExpressionManager();
    Expression variable = fVariable;
    if (fGlobal) {
      String exp = "$GLOBALS[\"" + fVariable.getFullName().substring(1) //$NON-NLS-1$
          + "\"]"; //$NON-NLS-1$
      variable = new DefaultExpression(exp);
    }
    expressionManager.update(variable, 1);
    fValue = variable.getValue();

    initChildren(fValue);
  }
View Full Code Here


   * org.eclipse.debug.core.model.IValueModification#setValue(java.lang.String
   * )
   */
  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);

  }
View Full Code Here

          ExpressionValue value = eExp.getValue();
          Expression[] eChildren = value.getChildren();
          if (eChildren == null)
            return new Expression[0];
          if (eChildren.length == 0) {
            ExpressionsManager expressionManager = fTarget
                .getExpressionManager();
            expressionManager.update(eExp, 1);
            value = eExp.getValue();
            eChildren = value.getChildren();
            if (eChildren == null)
              eChildren = new Expression[0];
          }
View Full Code Here

TOP

Related Classes of org.eclipse.php.internal.debug.core.zend.debugger.ExpressionsManager

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.