Examples of IJavaDebugTarget


Examples of org.eclipse.jdt.debug.core.IJavaDebugTarget

            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];
                if (thread.isSuspended()) {
                    return (IJavaStackFrame) thread.getTopStackFrame();
                }
View Full Code Here

Examples of org.eclipse.jdt.debug.core.IJavaDebugTarget

            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];
                if (thread.isSuspended()) {
                    return (IJavaStackFrame) thread.getTopStackFrame();
                }
View Full Code Here

Examples of org.eclipse.jdt.debug.core.IJavaDebugTarget

  public static String connectionString(){
    IDebugTarget[] debugTargets = DebugPlugin.getDefault().getLaunchManager().getDebugTargets();
    for (IDebugTarget t:debugTargets){
      try {
        if (t instanceof IJavaDebugTarget){
          IJavaDebugTarget tr=(IJavaDebugTarget) t;
         
          IThread[] threads = tr.getThreads();
          for (IThread ta:threads){
            String name = ta.getName();
            if (name.indexOf("SelectChannelConnector")!=-1){
              int lastIndexOf = name.lastIndexOf(':');
              if (lastIndexOf!=-1){
View Full Code Here

Examples of org.eclipse.jdt.debug.core.IJavaDebugTarget

            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];
                if (thread.isSuspended()) {
                    return (IJavaStackFrame) thread.getTopStackFrame();
                }
View Full Code Here

Examples of org.eclipse.jdt.debug.core.IJavaDebugTarget

              new Message[] { new Message(
                  JDIDebugBreakpointMessages.JavaLineBreakpoint_Unable_to_compile_conditional_breakpoint___missing_Java_project_context__1,
                  -1) });
          return SUSPEND;
        }
        IJavaDebugTarget target = (IJavaDebugTarget) thread
            .getDebugTarget();
        IAstEvaluationEngine engine = getEvaluationEngine(target,
            project);
        if (engine == null) {
          // If no engine is available, suspend
View Full Code Here

Examples of org.eclipse.jdt.debug.core.IJavaDebugTarget

   * @return evaluation engine or <code>null</code>
   */
  public IAstEvaluationEngine getEvaluationEngine(IJavaProject project,
      IJavaDebugTarget target) {
    // get adapter for those that wrapper us
    IJavaDebugTarget javaTarget = (IJavaDebugTarget) target
        .getAdapter(IJavaDebugTarget.class);
    if (javaTarget instanceof JDIDebugTarget) {
      return ((JDIDebugTarget) javaTarget).getEvaluationEngine(project);
    }
    return null;
View Full Code Here

Examples of org.eclipse.jdt.debug.core.IJavaDebugTarget

        MultiStatus multiStatus = new MultiStatus(
            JDIDebugPlugin.getUniqueIdentifier(),
            JDIDebugPlugin.ERROR,
            JDIDebugBreakpointMessages.JavaBreakpoint_Exception,
            null);
        IJavaDebugTarget jdiTarget = (IJavaDebugTarget) target
            .getAdapter(IJavaDebugTarget.class);
        if (jdiTarget instanceof JDIDebugTarget) {
          try {
            recreate((JDIDebugTarget) jdiTarget);
          } catch (CoreException e) {
View Full Code Here

Examples of org.eclipse.jdt.debug.core.IJavaDebugTarget

      if (stackFrame != null) {
        return stackFrame;
      }
    }
    IDebugTarget target = value.getDebugTarget();
    IJavaDebugTarget javaTarget = (IJavaDebugTarget) target
        .getAdapter(IJavaDebugTarget.class);
    if (javaTarget != null) {
      IThread[] threads = javaTarget.getThreads();
      for (IThread thread : threads) {
        if (thread.isSuspended()) {
          return (IJavaStackFrame) thread.getTopStackFrame();
        }
      }
View Full Code Here

Examples of org.eclipse.jdt.debug.core.IJavaDebugTarget

    }
    ISourceLocator locator = launch.getSourceLocator();
    if (locator == null) {
      return null;
    }
    IJavaDebugTarget target = (IJavaDebugTarget) frame.getDebugTarget();
    String def = target.getDefaultStratum();
    target.setDefaultStratum("Java"); //$NON-NLS-1$
    Object sourceElement = locator.getSourceElement(frame);
    target.setDefaultStratum(def);
    if (!(sourceElement instanceof IJavaElement)
        && sourceElement instanceof IAdaptable) {
      sourceElement = ((IAdaptable) sourceElement)
          .getAdapter(IJavaElement.class);
    }
View Full Code Here

Examples of org.eclipse.jdt.debug.core.IJavaDebugTarget

   * @see ILaunchListener#launchRemoved(ILaunch)
   */
  public void launchRemoved(ILaunch launch) {
    IDebugTarget[] debugTargets = launch.getDebugTargets();
    for (IDebugTarget debugTarget : debugTargets) {
      IJavaDebugTarget jt = (IJavaDebugTarget) debugTarget
          .getAdapter(IJavaDebugTarget.class);
      if (jt != null) {
        deregisterTarget((JDIDebugTarget) jt);
      }
    }
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.