Examples of layout()


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

        Menu menu = menuMgr.createContextMenu(canvas);
        canvas.setMenu(menu);
        getSite().registerContextMenu(menuMgr, theController.getSelectionProvider());       
        canvasListener = new CanvasListener(canvas);
       
        composite.layout();
        updateContentDescription(" ");
        configureToolbar();
        configureActionBar();
        theController.onOpenView();
    }
View Full Code Here

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

        }
        catch (CoreException e) {
          validateLabel.setText(e.getMessage());
        }
        buttonComposite.layout(new Control[] { validateButton });
        validateComposite.layout(new Control[] { validateLabel });
      }
    });

    // Create signup button only if the server is not local or micro
    if (CloudFoundryURLNavigation.canEnableCloudFoundryNavigation(cfServer)) {
View Full Code Here

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

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

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

    shell.layout(true, true);


    shell.setText(dm.getDisplayName());

    shell.open();
View Full Code Here

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

      /* 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

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

    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

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

      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

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

        }
      });
      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

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

        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

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

        // }

        viewer.getTree().setLayout(layout);
        tree.setLinesVisible(true);
        tree.setHeaderVisible(true);
        tree.layout(true);

    }

    @Override
    public void setFocus() {
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.