Examples of IStackFrame


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

    protected List getCachedFrames(IThread thread) {
        List list = null;
        Iterator frames = fExpandedVariables.keySet().iterator();
        while (frames.hasNext()) {
            IStackFrame frame = (IStackFrame) frames.next();
            if (frame.getThread().equals(thread)) {
                if (list == null) {
                    list = new ArrayList();
                }
                list.add(frame);
            }
View Full Code Here

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

    protected List getCachedFrames(IDebugTarget target) {
        List list = null;
        Iterator frames = fExpandedVariables.keySet().iterator();
        while (frames.hasNext()) {
            IStackFrame frame = (IStackFrame) frames.next();
            if (frame.getDebugTarget().equals(target)) {
                if (list == null) {
                    list = new ArrayList();
                }
                list.add(frame);
            }
View Full Code Here

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

            try {
                line = l.intValue();
            } catch (final OtpErlangRangeException e) {
                line = -1;
            }
            final IStackFrame sf = new ErlangStackFrame(module, (ErlangProcess) process,
                    target, line, null, bindings, stackFrameNo);
            stackFrames.add(sf);
            bindings = (OtpErlangList) t.elementAt(2);
            m = (OtpErlangAtom) ml0;
            l = (OtpErlangLong) ml.elementAt(1);
View Full Code Here

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

     */
    private static String makeDebuggerVariableHover(final ITextViewer textViewer,
            final int offset, final int length) {
        final IAdaptable adaptable = DebugUITools.getDebugContext();
        if (adaptable != null) {
            final IStackFrame frame = (IStackFrame) adaptable
                    .getAdapter(IStackFrame.class);
            try {
                if (frame != null && frame.hasVariables()) {
                    String varName = "";
                    try {
                        varName = textViewer.getDocument().get(offset, length);
                    } catch (final BadLocationException e) {
                    }
                    if (varName.length() > 0) {
                        final String firstLetter = varName.substring(0, 1);
                        if (firstLetter.toUpperCase().equals(firstLetter)) {
                            final IVariable[] vars = frame.getVariables();
                            for (final IVariable variable : vars) {
                                if (variable.getName().equals(varName)) {
                                    final String value = variable.getValue()
                                            .getValueString();
                                    return makeVariablePresentation(varName, value);
View Full Code Here

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

        return "<0." + a1 + "." + a2 + ">";
    }

    @Override
    public IBreakpoint[] getBreakpoints() {
        IStackFrame top = null;
        try {
            top = getTopStackFrame();
        } catch (final DebugException e1) {
            // can never happen
        }
View Full Code Here

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

    ILaunchConfiguration config = launch.getLaunchConfiguration();
    if (config == null) {
      return;
    }

    IStackFrame stack = null;
    try {
      stack = thread.getTopStackFrame();
    } catch (DebugException e) {
      return;
    }
View Full Code Here

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

   */
  @Override
  public void evaluateExpression(String expression, IDebugElement context,
      IWatchExpressionListener listener) {
    // find a stack frame context if possible.
    IStackFrame frame = null;
    if (context instanceof IStackFrame) {
      frame = (IStackFrame)context;
    } else if (context instanceof IThread) {
      try {
        frame = ((IThread)context).getTopStackFrame();
View Full Code Here

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

            }
        }
        if (t != null) {
            modificationChecker.onlyLeaveThreads((PyThread[]) this.threads);

            IStackFrame stackFrame[] = (IStackFrame[]) threadNstack[2];
            t.setSuspended(true, stackFrame);
            fireEvent(new DebugEvent(t, DebugEvent.SUSPEND, reason));
        }
    }
View Full Code Here

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

      List<String> results = new ArrayList<String>();

      // Protect against variable information unavailable for native
      // methods
      try {
        IStackFrame stackFrame = thread.getTopStackFrame();
        if (stackFrame != null) {
          process(thread.getTopStackFrame().getVariables(), results, ROOT_DEPTH);
        }
      } catch (DebugException e) {
        // Suppress exception as it is possible to get an error when the current
View Full Code Here

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

        obj = new SourceNotFoundEditorInput((IStackFrame) element);
      }
    }

    if (obj instanceof LocalFile && element instanceof IStackFrame) {
      IStackFrame stackFrame = (IStackFrame) element;
      LocalFile localFile = (LocalFile) obj;
      IProject project = null;
      try {
        if (stackFrame.getLaunch() != null
            && stackFrame.getLaunch().getLaunchConfiguration() != null) {
          String file = stackFrame
              .getLaunch()
              .getLaunchConfiguration()
              .getAttribute(IPHPDebugConstants.ATTR_FILE,
                  (String) null);
          if (file != null) {
            IWorkspaceRoot workspaceRoot = ResourcesPlugin
                .getWorkspace().getRoot();
            IResource resource = workspaceRoot.findMember(file);
            if (resource != null) {
              project = resource.getProject();
            }
          }
        }
      } catch (CoreException e1) {
      }
      if (project != null) {
        IDebugTarget debugTarget = (IDebugTarget) stackFrame
            .getDebugTarget();
        try {
          ProjectDescription desc = ((Project) project)
              .internalGetDescription();
          if (desc != null) {
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.