Package org.eclipse.swt.widgets

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


    if (!Utils.linkShellMetricsToConfig(window, "BlockedIpsWindow")) {
      window.setSize(620, 450);
      if (!Constants.isOSX)
        Utils.centreWindow(window);
    }
    window.layout();
    window.open();
    return window;
  }
 
  public static void
View Full Code Here


      public void widgetDisposed(DisposeEvent e) {
        UIUpdaterSWT.getInstance().removeUpdater(viewUpdater);
      }
    });

    shell.layout(true, true);


    shell.setText(dm.getDisplayName());

    shell.open();
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

        }
      });
      butNext.setText("Next");
    }
    setToolTipText();
    shell.layout();   
  }

  public void setToolTipText() {
    butNext.setToolTipText(Messages.getTooltip("assistent.next"));
    cancelButton.setToolTipText(Messages.getTooltip("assistent.cancel"));
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();
          }
        }
      }
    });
    shellWidth = shell.getSize().x;
View Full Code Here

  folder.addCTabFolder2Listener(new CTabFolder2Adapter() {
    @Override
    public void minimize(CTabFolderEvent event) {
      folder.setMinimized(true);
      folder.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
      shell.layout(true);
    }
    @Override
    public void maximize(CTabFolderEvent event) {
      folder.setMaximized(true);
      folder.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
View Full Code Here

    }
    @Override
    public void maximize(CTabFolderEvent event) {
      folder.setMaximized(true);
      folder.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, true));
      shell.layout(true);
    }
    @Override
    public void restore(CTabFolderEvent event) {
      folder.setMinimized(false);
      folder.setMaximized(false);
View Full Code Here

    @Override
    public void restore(CTabFolderEvent event) {
      folder.setMinimized(false);
      folder.setMaximized(false);
      folder.setLayoutData(new GridData(SWT.FILL, SWT.FILL, true, false));
      shell.layout(true);
    }
  });
  shell.setSize(300, 300);
  shell.open ();
  while (!shell.isDisposed ()) {
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.