Package org.eclipse.swt.widgets

Examples of org.eclipse.swt.widgets.Shell.open()


        Display display = new Display();
        Shell shell = new Shell(display);
        shell.setLayout(new FillLayout());
        new MainWindow(shell, SWT.NONE);
        shell.open();

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


        cmpLabels.redraw();
      }
    });

    shell.setSize(300, 100);
    shell.open();
    while (!shell.isDisposed()) {
      if (!display.readAndDispatch()) {
        display.sleep();
      }
    }
View Full Code Here

         Image image = new Image(display, res);
         shell.setImage(image);

      }
      Luisa swtLuke = new Luisa(shell);
      shell.open();
      while (!shell.isDisposed())
      {
         if (!display.readAndDispatch())
            display.sleep();
      }
View Full Code Here

            shell.pack ();
         }
      });

      shell.pack ();
      shell.open ();

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

        Rectangle splashRect = shell.getBounds();
        Rectangle displayRect = Display.getDefault().getBounds();
        int x = (displayRect.width - splashRect.width) / 2;
        int y = (displayRect.height - splashRect.height) / 2;
        shell.setLocation(x, y);
        shell.open();
        Thread.sleep(5000);
        shell.dispose();
    }

    public AnimatedGif(Composite composite, int i) {
View Full Code Here

        Shell shell = new Shell(Display.getDefault(), SWT.SHELL_TRIM);
        ExternalFileLauncherLink inst = new ExternalFileLauncherLink(shell, SWT.NONE);
        inst.configure(ExternalFileLauncherLink.class.getClassLoader().getResource("images/indetermLoadingSplash.gif").getFile(), "indetermLoadingSplash.gif", "gif");
        inst.initialize();
        shell.setBounds(100, 100, 200, 50);
        shell.open();
        while(!shell.isDisposed()) {
            if(Display.getDefault().readAndDispatch())
                Display.getDefault().sleep();
        }
    }
View Full Code Here

        for(int i=0; i<2; i++) {
            final Shell shell = new Shell(SWT.SHELL_TRIM|SWT.ON_TOP|SWT.CURSOR_WAIT);
            AnimatedCanvas canvas = new AnimatedCanvas(shell, SWT.TRANSPARENT|SWT.CURSOR_WAIT);
            canvas.setImageLocation(AnimatedCanvas.class.getClassLoader().getResource("images/indetermLoadingSplash.gif").toURI());
            shell.pack();
            shell.open();
            canvas.animate();
            shell.getDisplay().timerExec(3000, new Runnable() {
                @Override
                public void run() {
                    shell.close();
View Full Code Here

        Rectangle displayRect = display.getBounds();
        int x = (displayRect.width - splashRect.width) / 2;
        int y = (displayRect.height - splashRect.height) / 2;
        shell.setLocation(x, y);
        shell.pack();
        shell.open();

        splashComposite.progressBar.setMinimum(0);
        splashComposite.progressBar.setMaximum(tasks.length);
        for(int i=0; i<tasks.length; i++) {
            if(splashComposite.cancelled) break;
View Full Code Here

        Rectangle splashRect = shell.getBounds();
        Rectangle displayRect = display.getBounds();
        int x = (displayRect.width - splashRect.width) / 2;
        int y = (displayRect.height - splashRect.height) / 2;
        shell.setLocation(x, y);
        shell.open();
    }

    public static long closeSplash() {
        long r = -1L;
        if(splash != null) {
View Full Code Here

    }
    Display display = Display.getDefault();
    Shell shell = new Shell(display, SWT.RESIZE | SWT.APPLICATION_MODAL | SWT.DIALOG_TRIM);
    shell.setText("Select included types");
    SelectTypesDialog dialog = new SelectTypesDialog(shell, types, activePage.getIncludedTypes());
    shell.open();
    while (!shell.isDisposed()) {
      if (!display.readAndDispatch())
        display.sleep();
    }
    List<String> selectedTypes = dialog.getSelectedTypes();
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.