Package org.eclipse.swt.widgets

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


  Display display = new Display();
  Shell shell = new Shell(display);
  LogMessageView x = new LogMessageView();
  x.createPartControl(shell);

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

  // Set up the event loop.
  while (!shell.isDisposed()) {
      if (!display.readAndDispatch()) {
View Full Code Here


        // Force the dialog width to the suggested size and then allow it to
        // resize itself - this sets the width of the selector list column to
        // a sensible default.
        Shell dialogShell = dialog.getShell();
        dialogShell.setSize(PAGE_WIDTH_HINT, dialogShell.getSize().y);
        dialogShell.pack();

        dialog.open();
    }

    /**
 
View Full Code Here

        // Force the dialog width to the suggested size and then allow it to
        // resize itself - this sets the width of the selector list column to
        // a sensible default.
        Shell dialogShell = dialog.getShell();
        dialogShell.setSize(PAGE_WIDTH_HINT, dialogShell.getSize().y);
        dialogShell.pack();

        dialog.open();
    }

    // javadoc inherited
View Full Code Here

        updateSectionCompositesFirstColumnWidth(sectionComposites.iterator(),
                determineMaxWidth(sectionComposites.iterator()));
*/

        shell.layout();
        shell.pack();
    }

    /**
     *
     * @param iterator
View Full Code Here

               button.setText("<<");
            } else {
               composite.setLayoutData (up);
               button.setText(">>");
            }
            shell.pack ();
         }
      });

      shell.pack ();
      shell.open ();
View Full Code Here

            }
            shell.pack ();
         }
      });

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

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

    public static void main(String[] args) throws URISyntaxException, IOException {
        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() {
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.pack();
        shell.open();

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

      this.path = path;
    }
   
    protected void constrainShellSize() {
      Shell shell = getShell();
      shell.pack();
      shell.setSize(400,shell.getSize().y);
    }
   
    protected Control createDialogArea(Composite parent) {
      getShell().setText(HTMLPlugin.getResourceString("HTMLEditorPreferencePage.TLD"));
View Full Code Here

    editGame.closeListener = new Listener() {
      public void handleEvent(Event event) {
        shell.close();
      }
    };
    shell.pack();
    shell.open();
    return editGame;
  }
  /**
   * This method initializes executeCommandsTable 
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.