Examples of IThread


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

        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();
                }
            }
        }
        return null;
    }
View Full Code Here

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

    }

    private boolean hasSuspendedThreads() {
        Iterator<JDIThread> it = getThreadIterator();
        while ( it.hasNext() ) {
            IThread thread = it.next();
            if ( thread.isSuspended() ) return true;
        }
        return false;
    }
View Full Code Here

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

            IThread[] tharr = getThreads();
            ThreadReference t = null;
            DroolsThread t2 = null;

            for ( int i = 0; i < tharr.length; i++ ) {
                IThread th2 = tharr[i];
                ThreadReference th2real = ((DroolsThread) tharr[i]).getUnderlyingThread();

                if ( th2real.suspendCount() == 1 && th2.getName().equals( "main" ) ) {
                    t = th2real;
                    t2 = (DroolsThread) th2;
                }
            }
View Full Code Here

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

            IThread[] tharr = getThreads();
            ThreadReference t = null;
            DroolsThread t2 = null;

            for ( int i = 0; i < tharr.length; i++ ) {
                IThread th2 = tharr[i];
                ThreadReference th2real = ((DroolsThread) tharr[i]).getUnderlyingThread();

                if ( th2real.suspendCount() == 1 && th2.getName().equals( "main" ) ) {
                    t = th2real;
                    t2 = (DroolsThread) th2;
                }
            }
View Full Code Here

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

        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();
                }
            }
        }
        return null;
    }
View Full Code Here

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

  }

  public void testRepeatedStepping() throws Throwable {
    IBreakpoint bkp = getHelper().ensureBreakpoint("test.js", 14);

    IThread thread = getHelper().launchToBreakpoint(bkp, "Breakpoints",
        true);

    for (int i = 0; i < (20 * BUGGY_ENGINE_FACTOR); i++) {
      getHelper().step(thread, TestHelper.STEP_OVER);
      getHelper().verifyThreadState(thread, 15 - (i % 2), 3, "simple");
View Full Code Here

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

      int targetLine, String targetMethodName,
      TestHelper.IStepper stepMode) throws Throwable {

    IBreakpoint bkp = getHelper().ensureBreakpoint("test.js", bkpLine);

    IThread thread = getHelper().launchToBreakpoint(bkp, "Breakpoints",
        true);

    getHelper().verifyThreadState(thread, bkpLine, 3, "simple");
    getHelper().step(thread, stepMode);
    getHelper().verifyThreadState(thread, targetLine, targetStackSize,
        targetMethodName);
    thread.resume();

  }
View Full Code Here

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

  @Override
  protected boolean matches(DebugEvent evt) {

    // Scans the list of breakpoints hit by the thread
    // to see if our breakpoint is among them.
    IThread source = (IThread) evt.getSource();
    IBreakpoint[] bkps = source.getBreakpoints();

    for (IBreakpoint bkp : bkps) {
      if (bkp.equals(_bkp)) {
        return true;
      }
View Full Code Here

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

  // Breakpoint test "template".
  private void runSimpleBkpTest(final SimpleBkpTestData data)
      throws Throwable {
    IBreakpoint jsBkp = getHelper().ensureBreakpoint(data._bkpFile,
        data._bkpLine);
    IThread thread = getHelper().launchToBreakpoint(jsBkp,
        "Breakpoints", true); //$NON-NLS-1$

    getHelper().verifyThreadState(thread, data._bkpLine, data._stackLength,
        data._functionNames);
  }
View Full Code Here

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

    }

    private boolean hasSuspendedThreads() {
        Iterator it = getThreadIterator();
        while ( it.hasNext() ) {
            IThread thread = (IThread) it.next();
            if ( thread.isSuspended() ) return true;
        }
        return false;
    }
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.