Package org.eclipse.swt.custom

Examples of org.eclipse.swt.custom.StackLayout


   
    /*Create the composite that the pages will share*/
    contentPanel = new Composite(shell, SWT.BORDER);
    contentPanel.setBounds(2, 50, 450, 300);
   
    layout = new StackLayout();
    contentPanel.setLayout(layout);
  }
View Full Code Here


    });
    repoCombo.setItems(getRepositoryComboItems());

    repoConfigComposite = new Composite(repoTab, SWT.NONE);
    GridDataFactory.fillDefaults().grab(true, true).applyTo(repoConfigComposite);
    repoConfigStackLayout = new StackLayout();
    repoConfigComposite.setLayout(repoConfigStackLayout);

    TabItem repoTabItem = new TabItem(tabFolder, SWT.FILL);
    repoTabItem.setControl(repoTab);
    repoTabItem.setText(UIText.GlobalConfigurationPreferencePage_repositorySettingTabTitle);
View Full Code Here

    sf.setWeights(UIPreferences.stringToIntArray(store.getString(key), 2));
  }

  private Composite createMainPanel(final Composite parent) {
    topControl = new Composite(parent, SWT.NONE);
    StackLayout layout = new StackLayout();
    topControl.setLayout(layout);

    final Composite c = new Composite(topControl, SWT.NULL);
    layout.topControl = c;
    // shown instead of the splitter if an error message was set
View Full Code Here

          GitTraceLocation.HISTORYVIEW.getLocation(), message);
    getHistoryPageSite().getShell().getDisplay().asyncExec(new Runnable() {
      public void run() {
        if (topControl.isDisposed())
          return;
        StackLayout layout = (StackLayout) topControl.getLayout();
        if (message != null) {
          errorText.setText(message);
          layout.topControl = errorText;
        } else {
          errorText.setText(""); //$NON-NLS-1$
View Full Code Here

  @SuppressWarnings("boxing")
  @Override
  public void createPartControl(Composite aParent) {
    Composite displayArea = new Composite(aParent, SWT.NONE);
    layout = new StackLayout();
    displayArea.setLayout(layout);
    createEmptyArea(displayArea);

    super.createPartControl(displayArea);
View Full Code Here

     *
     * @see org.eclipse.ui.IWorkbenchPart#createPartControl(org.eclipse.swt.widgets.Composite)
     */
    public void createPartControl(Composite parent) {
        container = new Composite(parent, SWT.NULL);
        StackLayout layout = new StackLayout();
        layout.marginHeight = 0;
        layout.marginWidth = 0;
        container.setLayout(layout);

        if (model != null && model.hasValidConfig()) {
View Full Code Here

        handleSetFocus(IntroPlugin.isIntroStandby());
    }

    private void setTopControl(Control c) {
        // container has stack layout. safe to cast.
        StackLayout layout = (StackLayout) container.getLayout();
        layout.topControl = c;
        container.layout();
    }
View Full Code Here

        // mode, we dont get the cached standby part.

        // Find out if presentation or standby is at the top and restore
        // them. Container has stack layout. safe to cast.
        boolean restorePresentation = false;
        StackLayout layout = (StackLayout) container.getLayout();
        if (getPresentationControl().equals(layout.topControl))
            restorePresentation = true;

        IMemento presentationMemento = memento
            .createChild(MEMENTO_PRESENTATION_TAG);
View Full Code Here

        // create horizontal separator
        separator = toolkit.createCompositeSeparator(container);
        // content stack container
        content = toolkit.createComposite(container);
        StackLayout slayout = new StackLayout();
        slayout.marginWidth = slayout.marginHeight = 0;
        content.setLayout(slayout);

        boolean success = false;
        if (memento != null) {
View Full Code Here

            setTopControl(cachedControlKey.getControl());
        }
    }

    private void setTopControl(Control c) {
        StackLayout layout = (StackLayout) content.getLayout();
        layout.topControl = c;
        if (c instanceof Composite)
            ((Composite) c).layout();
        content.layout();
        container.layout();
View Full Code Here

TOP

Related Classes of org.eclipse.swt.custom.StackLayout

Copyright © 2018 www.massapicom. 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.