Examples of SWTThread


Examples of org.gudy.azureus2.ui.swt.mainwindow.SWTThread

      class_mon.exit();
    }
  }
 
  public Display getDisplay() {
    SWTThread instance = SWTThread.getInstance();
    if (instance == null)
      return null;
    return instance.getDisplay();
  }
View Full Code Here

Examples of org.gudy.azureus2.ui.swt.mainwindow.SWTThread

      // SWT < 3.0
    }
  }

  public static Display getDisplay() {
    SWTThread swt = SWTThread.getInstance();

    Display display;
    if (swt == null) {
      display = Display.getDefault();
      if (display == null) {
        System.err.println("SWT Thread not started yet!");
        return null;
      }
    } else {
      if (swt.isTerminated()) {
        return null;
      }
      display = swt.getDisplay();
    }

    if (display == null || display.isDisposed()) {
      return null;
    }
View Full Code Here

Examples of org.gudy.azureus2.ui.swt.mainwindow.SWTThread

  public static boolean execSWTThread(Runnable code) {
    return execSWTThread(code, -1);
  }

  public static boolean isThisThreadSWT() {
    SWTThread swt = SWTThread.getInstance();

    if (swt == null) {
      //System.err.println("WARNING: SWT Thread not started yet");
    }

    Display display = (swt == null) ? Display.getCurrent() : swt.getDisplay();

    if (display == null) {
      return false;
    }
View Full Code Here

Examples of org.gudy.azureus2.ui.swt.mainwindow.SWTThread

   * Waits until modal dialogs are disposed.  Assumes we are on SWT thread
   *
   * @since 3.0.1.3
   */
  public static void waitForModals() {
    SWTThread swt = SWTThread.getInstance();

    Display display;
    if (swt == null) {
      display = Display.getDefault();
      if (display == null) {
        System.err.println("SWT Thread not started yet!");
        return;
      }
    } else {
      if (swt.isTerminated()) {
        return;
      }
      display = swt.getDisplay();
    }

    if (display == null || display.isDisposed()) {
      return;
    }
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.