Package org.eclipse.debug.core

Examples of org.eclipse.debug.core.IExpressionManager


      Expression.SetCallback callback = new Expression.SetCallback() {
        @Override
        public void done(final String errorMessage) {
          if (errorMessage == null) {
            if (addWatchExpression) {
              IExpressionManager expressionManager =
                  DebugPlugin.getDefault().getExpressionManager();
              IWatchExpression watchExpression =
                  expressionManager.newWatchExpression(expression.getWatchExpression());
              expressionManager.addExpression(watchExpression);
            }
          } else {
            parentShell.getDisplay().asyncExec(new Runnable() {
              @Override
              public void run() {
View Full Code Here


      @Override
      public void run() {
        String expression = "Object.getOwnPropertyDescriptor(" + qualifiedName + ", \"" +
            jsVariable.getName() + "\")";

        IExpressionManager expressionManager = DebugPlugin.getDefault().getExpressionManager();
        IWatchExpression watchExpression = expressionManager.newWatchExpression(expression);
        expressionManager.addExpression(watchExpression);
      }
    };
  }
View Full Code Here

        String subExpression = hostObject.getExpression();

        String expression = "Object.getOwnPropertyDescriptor(" + subExpression + ", \"" +
            jsVariable.getName() + "\")";

        IExpressionManager expressionManager = DebugPlugin.getDefault().getExpressionManager();
        IWatchExpression watchExpression = expressionManager.newWatchExpression(expression);
        expressionManager.addExpression(watchExpression);
      }
    };
  }
View Full Code Here

      Expression.SetCallback callback = new Expression.SetCallback() {
        @Override
        public void done(final String errorMessage) {
          if (errorMessage == null) {
            if (addWatchExpression) {
              IExpressionManager expressionManager =
                  DebugPlugin.getDefault().getExpressionManager();
              IWatchExpression watchExpression =
                  expressionManager.newWatchExpression(expression.getWatchExpression());
              expressionManager.addExpression(watchExpression);
            }
          } else {
            parentShell.getDisplay().asyncExec(new Runnable() {
              @Override
              public void run() {
View Full Code Here

  public void run(IAction action) {
    IStructuredSelection selection = getCurrentSelection();
    if (selection instanceof TextSelection) {
      TextSelection textSelection = (TextSelection) selection;
      IExpressionManager expressionManager = DebugPlugin.getDefault()
          .getExpressionManager();
      IDOMNode domNode = (IDOMNode) selection.getFirstElement();
      String expression;
      try {
        expression = domNode.getFirstStructuredDocumentRegion()
            .getParentDocument().get(textSelection.getOffset(),
                textSelection.getLength());
        // create the new watch expression
        IWatchExpression watchExpression = expressionManager
            .newWatchExpression(expression.trim());
        expressionManager.addExpression(watchExpression);
        // refresh and re-evaluate
        watchExpression.setExpressionContext(getContext());
      } catch (Exception e) {
        Logger.logException(e);
      }
View Full Code Here

TOP

Related Classes of org.eclipse.debug.core.IExpressionManager

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.