Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.Display


  public String[]
  selectNetworks(
    final String  description,
    final String[]  tracker_networks )
  {   
    final Display  display = SWTThread.getInstance().getDisplay();
   
    if ( display.isDisposed()){
     
      return( null );
    }
   
    final AESemaphore  sem = new AESemaphore("NetworkClassifier");
View Full Code Here


      final String sourceRef) {
    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

      if (refreshed) {
        refreshed = false;
        if (!Utils.execSWTThread(new AERunnable() {
          public void runSupport() {
            try {
              Display display = Utils.getDisplay();
              if (display == null) {
                return;
              }

              if (display.getActiveShell() == null) {
                Shell[] shells = display.getShells();
                boolean noneVisible = true;
                for (int i = 0; i < shells.length; i++) {
                  if (shells[i].isVisible() && !shells[i].getMinimized()) {
                    noneVisible = false;
                    break;
View Full Code Here

  private void update(List updateables) {
    long start = 0;
    Map mapTimeMap = DEBUG_TIMER ? new HashMap() : null;

    Display display = Utils.getDisplay();
    if (display == null || display.isDisposed()) {
      return;
    }

    Object[] updateablesArray = updateables.toArray();
    for (int i = 0; i < updateablesArray.length; i++) {
View Full Code Here

    browser.setUrl(url);
    browser.setData("StartURL", url);
  }

  public void waitUntilClosed() {
    Display display = shell.getDisplay();
    while (!shell.isDisposed()) {
      if (!display.readAndDispatch()) {
        display.sleep();
      }
    }
  }
View Full Code Here

      }
    }
  }

  public static void main(String[] args) {
    Display display = new Display();
    Shell shell = new Shell(display, SWT.DIALOG_TRIM);
    shell.setSize(800, 600);

    new SimpleBrowserWindow(shell, "http://google.com", 0.8, 0.5, true, false);

    shell.open();

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

    this.direction = direction;

    if (shell == null || shell.isDisposed())
      return;

    Display display = shell.getDisplay();
    display.syncExec(new Runnable() {
      public void run() {
        if (shell.isDisposed())
          return;

        switch (ShellSlider.this.direction) {
View Full Code Here

     
        skin = (SWTSkin)JMuleUIManager.getJMuleUI().getSkin();
   
    }catch(Throwable t) {}
   
    Display display = SWTThread.getDisplay();
   
    final Shell shell1=new Shell(display,SWT.ON_TOP);
    shell=new Shell(shell1,SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL);
   
    shell.setText(_._("advancedsearchwindow.title"));
View Full Code Here

    try {
        skin = (SWTSkin) JMuleUIManager.getJMuleUI().getSkin();
    }catch(Throwable t) {}
   
   
    Display display = SWTThread.getDisplay();
    final Shell shell1=new Shell(display,SWT.ON_TOP);
    shell=new Shell(shell1,SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL | SWT.RESIZE);
   
    shell.setText(Localizer._("downloadinfowindow.title"));
    shell.setImage(SWTImageRepository.getImage("info.png"));
View Full Code Here

  public void initUIComponents() {
    SWTSkin skin = null;
    try {
        skin = (SWTSkin)JMuleUIManager.getJMuleUI().getSkin();
    }catch(Throwable t) {}
    Display display = SWTThread.getDisplay();
    final Shell shell1=new Shell(display,SWT.ON_TOP);
    shell=new Shell(shell1,SWT.DIALOG_TRIM | SWT.APPLICATION_MODAL | SWT.RESIZE);
    shell.setText(Localizer._("uploadinfowindow.title"));
    shell.setImage(SWTImageRepository.getImage("info.png"));
       
View Full Code Here

TOP

Related Classes of org.eclipse.swt.widgets.Display

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.