Package org.eclipse.swt.widgets

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


        composite.setLayout(new GridLayout());
        composite.setLayoutData(new GridData(
            GridData.GRAB_HORIZONTAL | GridData.GRAB_VERTICAL |
            GridData.FILL_HORIZONTAL | GridData.FILL_VERTICAL));

        shell.layout();
        shell.pack();
        shell.open();
       
        while (!shell.isDisposed()) {
           
View Full Code Here


    Shell shell = new Shell();
    try {
      URL url = SportSync.class.getResource(SportSync.class.getSimpleName() + IConstants.XWT_EXTENSION_SUFFIX);
      Control control = XWT.load(url);
      shell = control.getShell();
      shell.layout();
      centerInDisplay(shell);
      // run events loop
      Image logo512 = new Image(shell.getDisplay(), SportSync.class.getResourceAsStream("sportsync512.png"));
      Image logo256 = new Image(shell.getDisplay(), SportSync.class.getResourceAsStream("sportsync256.png"));
      Image logo48 = new Image(shell.getDisplay(), SportSync.class.getResourceAsStream("sportsync48.png"));
View Full Code Here

                    newdirText.setText(selectedDir);
                    newdirText.setForeground(View.getDisplay().getSystemColor(SWT.COLOR_DARK_GREEN));
                 
                    dirchanger_composite.layout(true);
                    submit.setVisible(true);
                    dirShell.layout(true);
                    dirShell.pack();
                }
            }
        });
       
View Full Code Here

              dr.setMonitor(m);
              demoRunners.add(dr);
            }
          }
          panelComposite.layout();
          shell.layout();
          new MasterRunner(demoRunners, d).start();
        }
      }

      @Override
View Full Code Here

      /* Shell got restored */
      if (!shell.getFullScreen()) {
        ApplicationWorkbenchWindowAdvisor configurer = ApplicationWorkbenchAdvisor.fgPrimaryApplicationWorkbenchWindowAdvisor;
        configurer.setStatusVisible(Owl.getPreferenceService().getGlobalScope().getBoolean(DefaultPreferences.SHOW_STATUS), false);

        shell.layout(); //Need to layout to avoid screen cheese
      }

      /* Shell got fullscreen */
      else {
        ApplicationWorkbenchWindowAdvisor configurer = ApplicationWorkbenchAdvisor.fgPrimaryApplicationWorkbenchWindowAdvisor;
View Full Code Here

    fToggleItem.setImage(OwlUI.getImage(fResources, excluded ? "icons/ovr16/arrow_up.gif" : "icons/ovr16/arrow_down.gif")); //$NON-NLS-1$ //$NON-NLS-2$
    fToggleItem.setToolTipText(excluded ? Messages.FolderChooser_HIDE_FOLDERS : Messages.FolderChooser_SHOW_FOLDERS);

    ((GridData) fFolderViewerContainer.getLayoutData()).exclude = !excluded;
    Shell shell = fFolderViewerContainer.getShell();
    shell.layout();

    fAddFolderBar.setVisible(excluded);

    /* Increase Size of Shell to fit Control */
    if (fExpandStrategy == ExpandStrategy.RESIZE) {
View Full Code Here

      int currentWidth = shell.getSize().x;
      Point desiredSize = shell.computeSize(currentWidth, SWT.DEFAULT);
      if (desiredSize.y > shell.getSize().y)
        shell.setSize(currentWidth, desiredSize.y);
      else
        shell.layout(true, true);
    }

    if (excluded)
      fFolderViewer.getTree().setFocus();
    else
View Full Code Here

  @Override
  public int createUI() {
    Display display = new Display();
    Shell shell = createShell( display );
    createContent( shell );
    shell.layout( true );
    shell.open();
    if( getApplicationContext().getLifeCycleFactory().getLifeCycle() instanceof RWTLifeCycle ) {
      readAndDispatch( display, shell );
    }
    return 0;
View Full Code Here

  @Override
  public int createUI() {
    Display display = new Display();
    Shell shell = createShell( display );
    createContent( shell );
    shell.layout( true );
    shell.open();
    if( getApplicationContext().getLifeCycleFactory().getLifeCycle() instanceof RWTLifeCycle ) {
      readAndDispatch( display, shell );
    }
    return 0;
View Full Code Here

        if (event.detail != SWT.DRAG) {
          Rectangle clientArea = shell.getClientArea();
          int newWidth = clientArea.width - event.x - (sash.getSize().x + rightSeparator.getSize().x);
          if (newWidth != data.widthHint) {
            data.widthHint = newWidth;
            shell.layout();
          }
        }
      }
    });
    this.tray = tray;
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.