Package org.eclipse.debug.core.model

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


                    .handleStatus(fgNeedStackFrame, value);
            if (stackFrame != null) {
                return stackFrame;
            }
        }
        IDebugTarget target = value.getDebugTarget();
        IJavaDebugTarget javaTarget = (IJavaDebugTarget) target
                .getAdapter(IJavaDebugTarget.class);
        if (javaTarget != null) {
            IThread[] threads = javaTarget.getThreads();
            for (int i = 0; i < threads.length; i++) {
                IThread thread = threads[i];
View Full Code Here


          // debug target, so to check if an app
          // is disconnected from the debugger, additional termination
          // checks need to be performed on the debug target
          // itself
          if (source instanceof IThread) {
            IDebugTarget debugTarget = ((IThread) source).getDebugTarget();

            // Be sure to only handle events from the debugger
            // source that generated the termination event. Do not
            // handle
            // any other application that is currently connected to
            // the debugger.
            if (eventSource.equals(debugTarget) && debugTarget.isDisconnected()) {

              DebugPlugin.getDefault().removeDebugEventListener(this);
              command.removeFromConnectionRegister();
              ICloudFoundryDebuggerListener listener = command.getListener();
              if (listener != null) {
View Full Code Here

      }
    }
    IDebugTarget[] debugTargets = launch.getDebugTargets();
    if (debugTargets != null) {
      for (int i = 0; i < debugTargets.length; i++) {
        IDebugTarget iDebugTarget = debugTargets[i];
        try {
          iDebugTarget.disconnect();
        } catch (DebugException e) {
          // TODO Auto-generated catch block
          e.printStackTrace();
        }
      }
    }
    IDebugTarget dt = launch.getDebugTarget();
    if (dt!=null) {
      try {
        dt.disconnect();
      } catch (DebugException e) {
        // TODO Auto-generated catch block
        e.printStackTrace();
      }
    }
View Full Code Here

    public ShowInContext getShowInContext() {
        final IProcess process = getProcess();
        if (process == null) {
            return null;
        }
        final IDebugTarget target = (IDebugTarget) process.getAdapter(IDebugTarget.class);
        ISelection selection = null;
        if (target == null) {
            selection = new TreeSelection(new TreePath(new Object[] {
                    DebugPlugin.getDefault().getLaunchManager(), process.getLaunch(),
                    process }));
        } else {
            selection = new TreeSelection(new TreePath(new Object[] {
                    DebugPlugin.getDefault().getLaunchManager(), target.getLaunch(),
                    target }));
        }
        return new ShowInContext(null, selection);
    }
View Full Code Here

            if (parentElement instanceof ILaunch) {
                final ILaunch launch = (ILaunch) parentElement;
                final List<IDebugTarget> nodes = nodeMap.get(launch);
                return nodes.toArray();
            } else if (parentElement instanceof IDebugTarget) {
                final IDebugTarget node = (IDebugTarget) parentElement;
                final List<DebugTraceEvent> events = eventMap.get(node);
                return events.toArray();
            }
            return NO_CHILDREN;
        }
View Full Code Here

                switch (columnIndex) {
                case 0:
                    s = "node";
                    break;
                case 1:
                    final IDebugTarget target = (IDebugTarget) element;
                    s = target.toString();
                    break;
                default:
                    s = "";
                    break;
                }
View Full Code Here

        fTarget = null;
        if (selection instanceof IStructuredSelection) {
            final IStructuredSelection ss = (IStructuredSelection) selection;
            for (final Object o : ss.toArray()) {
                if (o instanceof IDebugTarget) {
                    final IDebugTarget target = (IDebugTarget) o;
                    fTarget = target;
                    break;
                }
            }
        }
View Full Code Here

                    List<IDebugTarget> nodes = nodeMap.get(launch);
                    if (nodes == null) {
                        nodes = new ArrayList<IDebugTarget>(1);
                        nodeMap.put(launch, nodes);
                    }
                    final IDebugTarget node = data.getNode();
                    if (!nodes.contains(node)) {
                        nodes.add(node);
                        viewer.add(launch, node);
                        parentMap.put(node, launch);
                    }
View Full Code Here

    }

    public void setStackFrames(final String module, final int line,
            final OtpErlangList erlStackFrames, final OtpErlangList bs) {
        stackFrames = new ArrayList<IStackFrame>();
        final IDebugTarget target = getDebugTarget();
        stackFrames.add(new ErlangStackFrame(module, this, target, line, null, bs,
                erlStackFrames.arity() + 2));
        for (final OtpErlangObject o : erlStackFrames) {
            final OtpErlangTuple t = (OtpErlangTuple) o;
            final OtpErlangTuple mfa;
View Full Code Here

            if (o instanceof ErlangDebugElement) {
                final ErlangDebugElement e = (ErlangDebugElement) o;
                erlangDebugTarget = e.getErlangDebugTarget();
            } else if (o instanceof ILaunch) {
                final ILaunch launch = (ILaunch) o;
                final IDebugTarget target = launch.getDebugTarget();
                if (target instanceof IErlangDebugNode) {
                    final IErlangDebugNode edn = (IErlangDebugNode) target;
                    erlangDebugTarget = edn.getErlangDebugTarget();
                }
            } else if (o instanceof RuntimeProcess) {
                final RuntimeProcess ep = (RuntimeProcess) o;
                final ILaunch launch = ep.getLaunch();
                final IDebugTarget target = launch.getDebugTarget();
                if (target instanceof IErlangDebugNode) {
                    final IErlangDebugNode edn = (IErlangDebugNode) target;
                    erlangDebugTarget = edn.getErlangDebugTarget();
                }
            }
View Full Code Here

TOP

Related Classes of org.eclipse.debug.core.model.IDebugTarget

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.