Package org.eclipse.ui.presentations

Examples of org.eclipse.ui.presentations.StackPresentation


   * @param show
   *            <code>true</code> - the min/max buttons are visible.
   * @since 3.3
   */
  public void showMinMax(boolean show) {
    StackPresentation pres = getPresentation();
    if (pres == null)
      return;
   
    if (pres instanceof TabbedStackPresentation)
      ((TabbedStackPresentation)pres).showMinMax(show);
View Full Code Here


    public static StackPresentation createPresentation(
            AbstractPresentationFactory factory, int role, Composite parent,
            IStackPresentationSite site, IPresentationSerializer serializer,
            IMemento memento) {

        StackPresentation presentation = null;

        switch (role) {
        case ROLE_EDITOR:
            presentation = factory.createEditorPresentation(parent, site);
            break;
        case ROLE_STANDALONE:
            presentation = factory.createStandaloneViewPresentation(parent,
                    site, true);
            break;
        case ROLE_STANDALONE_NOTITLE:
            presentation = factory.createStandaloneViewPresentation(parent,
                    site, false);
            break;
        default:
            presentation = factory.createViewPresentation(parent, site);
        }

        //don't initialize editors at creation time - it will not contain any parts
        if (role != ROLE_EDITOR && memento != null && serializer != null) {
            presentation.restoreState(serializer, memento);
        }

        return presentation;
    }
View Full Code Here

TOP

Related Classes of org.eclipse.ui.presentations.StackPresentation

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.