Examples of invokeAndWait()


Examples of com.intellij.openapi.application.Application.invokeAndWait()

    if (app.isDispatchThread()) {
      action.run();
    }
    else {
      app.invokeAndWait(action, ModalityState.defaultModalityState());
    }

    return file[0];
  }

Examples of com.publicobject.misc.util.concurrent.JobQueue.invokeAndWait()

        // validate that our thread didn't throw interrupted exception
        assertNull(result.getThrown());

        // validate that the thread is still interrupted
        jobQueue.invokeAndWait(new FailIfNotInterruptedRunnable());
    }

    /**
     * Wait a bit to give a chance for thread contention.
     */
 

Examples of com.sun.java.browser.dom.DOMService.invokeAndWait()

    DOMService service = null;
    try {
      service = DOMService.getService( XApplet.getApplet() );

      /*String title = (String)*/service.invokeAndWait( new DOMAction()
      {
        public Object run( DOMAccessor accessor )
        {
          htmlDoc = (HTMLDocument)accessor.getDocument( XApplet.getApplet() );
          return htmlDoc.getTitle();

Examples of com.sun.midp.util.SerialCallback.invokeAndWait()

        // Set up a form with no focusable item.

        form.append("String 1");
        dpy.setCurrent(form);
        scb.invokeAndWait();

        // Block the event queue to prevent the invalidate from
        // being processed.

        dpy.callSerially(

Examples of hermes.HermesDispatcher.invokeAndWait()

    synchronized (dispatchers) {
      for (Iterator iter = dispatchers.entrySet().iterator(); iter.hasNext();) {
        Map.Entry entry = (Map.Entry) iter.next();
        HermesDispatcher dispatcher = (HermesDispatcher) entry.getValue();

        dispatcher.invokeAndWait(runnable);
      }
    }
  }

  /**
 

Examples of net.rim.device.api.ui.UiApplication.invokeAndWait()

        }

        // Update the screen to show the playlist
        this._playlist = playlist;
        if (playlist != null && screen != null) {
            app.invokeAndWait(new Runnable() {
                public void run() {
                    screen.setPlaylist(_playlist);
                }
            });
        }

Examples of org.apache.batik.util.RunnableQueue.invokeAndWait()

        try {
            while (!Thread.currentThread().isInterrupted()) {
                lastFrameTime = System.currentTimeMillis();

                rq.invokeAndWait(repaintRunnable);

                currentTime = System.currentTimeMillis();
                tm = currentTime - lastFrameTime;
                sleepTime = targetFrameTime-tm;
                if (sleepTime > 0) {

Examples of org.netbeans.jemmy.QueueTool.invokeAndWait()

            comps[0] = comp;
        } else {
            comps = Frame.getFrames();
        }
        final Component[] comps_final = comps;
        qt.invokeAndWait(new QueueAction("dumpComponent") {
            public Object launch() throws Exception {
                printHeader(writer);
                dumpSome("dump", comps_final, writer, "", listener);
                writer.flush();
                return null;
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.