Examples of IStackFrame


Examples of org.eclipse.debug.core.model.IStackFrame

   * @return the stack frame that supplies an evaluation context, or
   *         <code>null</code> if none
   */
  public static IStackFrame getEvaluationContext(IWorkbenchPart part) {
    IWorkbenchPage page = part.getSite().getPage();
    IStackFrame frame = getContext(page);
    if (frame == null) {
      return getEvaluationContext(page.getWorkbenchWindow());
    }
    return frame;
  }
View Full Code Here

Examples of org.eclipse.debug.core.model.IStackFrame

  }

  private static IStackFrame getEvaluationContext(IWorkbenchWindow window,
      List alreadyVisited) {
    IWorkbenchPage activePage = window.getActivePage();
    IStackFrame frame = null;
    if (activePage != null) {
      frame = getContext(activePage);
    }
    if (frame == null) {
      IWorkbenchPage[] pages = window.getPages();
View Full Code Here

Examples of org.eclipse.debug.core.model.IStackFrame

        if (selection instanceof IStructuredSelection) {
          IStructuredSelection ss = (IStructuredSelection) selection;
          if (ss.size() == 1) {
            Object element = ss.getFirstElement();
            if (element instanceof IAdaptable) {
              IStackFrame frame = (IStackFrame) ((IAdaptable) element)
                  .getAdapter(IStackFrame.class);
              boolean instOf = element instanceof IStackFrame
                  || element instanceof IThread;
              if (frame != null) {
                // do not consider scrapbook frames
View Full Code Here

Examples of org.eclipse.debug.core.model.IStackFrame

                return;
              if (target.getThreads() == null
                  || target.getThreads().length == 0)
                return;
              IThread thread = target.getThreads()[0];
              IStackFrame frame = thread.getTopStackFrame();
              if (frame == null)
                return;
              Object[] segments = new Object[5];
              segments[0] = DebugPlugin.getDefault()
                  .getLaunchManager();
View Full Code Here

Examples of org.eclipse.debug.core.model.IStackFrame

  public Object getError() {
    return null;
  }

  public Expression[] getStackVariables() throws DebugException {
    IStackFrame frame = getTopStackFrame();
    if (frame == null) {
      return NO_VARIABLES;
    }
    Expression[] stackVariables = ((PHPStackFrame) frame)
        .getStackVariables();
View Full Code Here

Examples of org.eclipse.debug.core.model.IStackFrame

    } else {
      List<IJavaStackFrame> frames = ((JDIThread) getThread())
          .computeStackFrames();
      int index = frames.indexOf(this);
      if (index >= 0 && index < frames.size() - 1) {
        IStackFrame nextFrame = frames.get(index + 1);
        ((JDIThread) getThread()).stepToFrame(nextFrame);
      }
    }
  }
View Full Code Here

Examples of org.eclipse.debug.core.model.IStackFrame

    }
    return o1.equals(o2);
  }

  protected boolean isTopStackFrame() throws DebugException {
    IStackFrame tos = getThread().getTopStackFrame();
    return tos != null && tos.equals(this);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.