Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.Display.sleep()


    getParent().open();
   
    Display display = clientCore.getGui().getDisplay();
    while (!getParent().isDisposed()) {
      if (!display.readAndDispatch())
        display.sleep();
    }
  }
 
  /**
   * SWT initialization
View Full Code Here


    shell.open();
    refreshTables();
    while (!shell.isDisposed() && !this.isDisposed()) {
      if (!shell.getDisplay().readAndDispatch())
        display.sleep();
    }
    logger.info("Logging out");

    try {
      getClientCore().getCommunication().logout();
View Full Code Here

        parent.setSize(640, 480);
        parent.open();

        while (!parent.isDisposed()) {
            if (!display.readAndDispatch()) {
                display.sleep();
            }
        }
        display.dispose();
        System.exit(0);
    }
View Full Code Here

      addKeyListener(table, dialog);
      addTraverseListener(table);

      while (!dialog.isDisposed()) {
        if (!display.readAndDispatch()) {
          display.sleep();
        }
      }
    } finally {
      if (!dialog.isDisposed()) {
        cancel(dialog);
View Full Code Here

      while (true) {
        if (!display.readAndDispatch()) {
          if (initDone[0])
            break;
          display.sleep();
        }
       
      }
     
      // can only be a runtime or error
View Full Code Here

    s.pack();
    s.open();
    while(!s.isDisposed()) {
      if(!d.readAndDispatch())
        d.sleep();
    }
    d.dispose();

    System.exit(0);
  }
View Full Code Here

    // SWT requires the main thread to be the event thread
    if(PluginManager.getEnableSwt()) {
      Display display = Display.getCurrent();
      while(!display.isDisposed()) {
        if(!display.readAndDispatch())
          display.sleep();
      }
      System.exit(0);
    }
  }
}
View Full Code Here

      m_shell.setActive();
      Display display = Display.getCurrent();
      while (m_shell.isVisible()) {
        try {
          if (!display.readAndDispatch()) {
            display.sleep();
          }
        } catch (Throwable e) {
        }
      }
      if (!display.isDisposed()) {
View Full Code Here

        ViewUtility.populateCompositeWithData(_toolkit, shell, result);
       
        shell.open();
        while (!shell.isDisposed()) {
            if (!display.readAndDispatch()) {
                display.sleep();
            }
        }
        shell.dispose();
    }
   
View Full Code Here

       
        while (!shell.isDisposed())
        {  
            if (!display.readAndDispatch())
            {
                display.sleep();
            }
        }
       
        // enable the main shell
        _window.getShell().setEnabled(true);
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.