Package org.eclipse.swt.widgets

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


        {
          final Display display = ui_instance.getDisplay();
         
          if ( !display.isDisposed()){
           
            display.asyncExec(
              new Runnable()
              {
                public void
                run()
                {
View Full Code Here


    } else {
      COConfigurationManager.setBooleanDefault("Show Splash", false);
    }

    if (COConfigurationManager.getBooleanParameter("Show Splash")) {
      display.asyncExec(new AERunnable() {
        public void runSupport() {
          new SplashWindow(display, Initializer.this);
        }
      });
    }
View Full Code Here

    final UIFunctions functions = UIFunctionsManager.getUIFunctions();
    if (functions == null) {
      AEThread2 thread = new AEThread2("show browser " + url, true) {
        public void run() {
          final Display display = Display.getDefault();
          display.asyncExec(new AERunnable() {
            public void runSupport() {
              BrowserWindow window = new BrowserWindow(
                  display.getActiveShell(), url, w, h, allowResize, false);
              window.waitUntilClosed();
              message.complete(false, true, null);
View Full Code Here

  }
 
  public void initUIComponents() {
    final Display display = SWTThread.getDisplay();
    final MainWindow instance = this;
    display.asyncExec(new JMRunnable() {
            public void JMRun() {
   
              shell = new Shell(display);
             
        shell.setSize(800, 500);  
View Full Code Here

  int y = (displayRect.height - splashRect.height) / 2;
  splash.setLocation(x, y);
  splash.open();
 
  //*-- start the Online Index application
  display.asyncExec(
    new Runnable()
    {
      public void run()
      {
       int i = 0;
View Full Code Here

                     * would be changed but no event would be sent :(
                     * So we just delay the call and wait for new selection in editor
                     */
                    Display display = Display.getDefault();
                    // fork
                    display.asyncExec(new Runnable() {
                        public void run() {
                            view.checkOpenEditors(true);
                        }
                    });
                }
View Full Code Here

                        display.timerExec(1000, runnable2);
                    }
                };
                Display display = Display.getDefault();
                // fork
                display.asyncExec(runnable1);
            }
        }
    }

    private boolean isSupportedBuffer(IFileBuffer buffer) {
View Full Code Here

                            if (showAsText)
                                readAsText(zipFile, zipEntry, charsets[selectedCharset], writer, 1024 * 20, monitor);
                            else
                                readAsHex(zipFile, zipEntry, writer, 1024 * 20, 2, monitor);

                            display.asyncExec(new Runnable() {
                                public void run() {
                                    setContent(writer.toString());
                                }
                            });

View Full Code Here

                            if (showAsText)
                                readAsText(zipFile, zipEntry, charsets[selectedCharset], writer, 1024 * 20, monitor);
                            else
                                readAsHex(zipFile, zipEntry, writer, 1024 * 20, 2, monitor);

                            display.asyncExec(new Runnable() {
                                public void run() {
                                    setContent(writer.toString());
                                }
                            });

View Full Code Here

      return;
    }
    final Display display = configurer.getWorkbench().getDisplay();
    if (display != null && !display.isDisposed()) {
      try {
        display.asyncExec(new Runnable() {
          public void run() {
            display.timerExec(-1, handler);
            display.removeFilter(SWT.KeyUp, idleListener);
            display.removeFilter(SWT.MouseUp, idleListener);
          }
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.