Package org.eclipse.swt.widgets

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


        // Create the dialog window
        Shell shell = new Shell(getParent(), getStyle());
        shell.setText(getText());
        shell.setImage(UIUtils.getImageRegistry().get("sfdc_icon")); //$NON-NLS-1$
        createContents(shell);
        shell.pack();
        shell.open();
        Display display = getParent().getDisplay();
        while (!shell.isDisposed()) {
            if (!display.readAndDispatch()) {
                display.sleep();
View Full Code Here


                    if (href instanceof IMessage[]) {
                        text.setText(createFormTextContent((IMessage[]) href), true, false);
                    }

                    shell.setLocation(hl);
                    shell.pack();
                    shell.open();
                } else if (href instanceof IMessage[]) {
                    IMessage oneMessage = ((IMessage[]) href)[0];
                    Set/* <IvyNodeElement> */conflicts = (Set/* <IvyNodeElement> */) oneMessage.getData();
                    if (conflicts != null) {
View Full Code Here

      table.setSelection(gotoDirection ? 1 : table.getItemCount() - 1);
    }

    tc.pack();
    table.pack();
    dialog.pack();

    Rectangle tableBounds = table.getBounds();
    tableBounds.height = Math.min(tableBounds.height, table.getItemHeight()
        * MAX_ITEMS);
    table.setBounds(tableBounds);
 
View Full Code Here

   */
  private final Point configureSize() {
    final Shell shell = getShell();

    // Get the packed size of the shell.
    shell.pack();
    final Point size = shell.getSize();

    // Use the previous width if appropriate.
    if ((previousWidth != NO_REMEMBERED_WIDTH) && (previousWidth > size.x)) {
      size.x = previousWidth;
View Full Code Here

        label.pack();
      }
      grpIcons.pack();
    }

    s.pack();
    s.open();
    while(!s.isDisposed()) {
      if(!d.readAndDispatch())
        d.sleep();
    }
View Full Code Here

                shell.dispose();
            }
        });

        shell.setDefaultButton(okButton);
        shell.pack();
        ViewUtility.centerChildInParentShell(parent, shell);
       
        shell.open();
    }
View Full Code Here

                shell.dispose();
            }
        });

        shell.setDefaultButton(okButton);
        shell.pack();
        ViewUtility.centerChildInParentShell(parent, shell);
       
        shell.open();
    }
   
View Full Code Here

                shell.dispose();
            }
        });

        shell.setDefaultButton(okButton);
        shell.pack();
        ViewUtility.centerChildInParentShell(parent, shell);
       
        shell.open();
    }
   
View Full Code Here

        shell.setText(_title);
        shell.setImage(ApplicationRegistry.getImage(CONSOLE_IMAGE));
        shell.setLayout(new GridLayout());
       
        createWidgets(shell);       
        shell.pack();
       
        //get current size dialog, and application window size and location
        int appWidth = appShell.getBounds().width;
        int appHeight = appShell.getBounds().height;
        int appLocX = appShell.getBounds().x;
View Full Code Here

        shell.setText(ACTION_ADDSERVER);
        shell.setImage(ApplicationRegistry.getImage(CONSOLE_IMAGE));
        shell.setLayout(new GridLayout());
       
        createWidgets(shell);
        shell.pack();
       
        //get current size dialog, and application window size and location
        int appWidth = appShell.getBounds().width;
        int appHeight = appShell.getBounds().height;
        int appLocX = appShell.getBounds().x;
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.