Package org.jamesii.gui.application.task

Examples of org.jamesii.gui.application.task.TaskManagerAdapter


   *          if true a cancel button is displayed offering the option to cancel
   *          the specified {@link ITask}
   */
  public static void runTaskAndWait(final ITask task, final boolean cancelable) {
    final Semaphore waitSemaphore = new Semaphore(0);
    TaskManager.addTaskListener(new TaskManagerAdapter() {
      @Override
      public void taskFinished(ITask t) {
        if (task == t) {
          waitSemaphore.release();
        }
View Full Code Here

TOP

Related Classes of org.jamesii.gui.application.task.TaskManagerAdapter

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.