Examples of StackPresentation


Examples of org.eclipse.ui.presentations.StackPresentation

        // If we have at least one child, ensure that the "current" pointer points to one of them
        if (!isDisposed() && getPresentableParts().size() > 0) {
            Assert.isTrue(currentFound);

            if (!isDisposed()) {
                StackPresentation presentation = getPresentation();

                // If the presentation controls have focus, ensure that we have the active appearance
                if (SwtUtil.isChild(presentation.getControl(), focusControl)) {
                    Assert
                            .isTrue(
                                    getActive() == StackPresentation.AS_ACTIVE_FOCUS,
                                    "The presentation has focus but does not have the active appearance"); //$NON-NLS-1$
                }
View Full Code Here

Examples of org.eclipse.ui.presentations.StackPresentation

        AbstractPresentationFactory factory = getFactory();

        PresentationSerializer serializer = new PresentationSerializer(
                getPresentableParts());

        StackPresentation presentation = PresentationFactoryUtil
                .createPresentation(factory, appearance, parent,
                        presentationSite, serializer, savedPresentationState);

        createControl(parent, presentation);
        getControl().moveBelow(null);
View Full Code Here

Examples of org.eclipse.ui.presentations.StackPresentation

    public LayoutPart[] getChildren() {
        return (LayoutPart[]) children.toArray(new LayoutPart[children.size()]);
    }

    public Control getControl() {
        StackPresentation presentation = getPresentation();

        if (presentation == null) {
            return null;
        }

        return presentation.getControl();
    }
View Full Code Here

Examples of org.eclipse.ui.presentations.StackPresentation

        // Need to remove it from the list of children before notifying the presentation
        // since it may setVisible(false) on the part, leading to a partHidden notification,
        // during which findView must not find the view being removed.  See bug 60039.
        children.remove(child);

        StackPresentation presentation = getPresentation();

        if (presentablePart != null && presentation != null) {
            ignoreSelectionChanges = true;
            presentableParts .remove(presentablePart);
            presentation.removePart(presentablePart);
            presentablePart.dispose();
            ignoreSelectionChanges = false;
        }

        if (!isDisposed()) {
View Full Code Here

Examples of org.eclipse.ui.presentations.StackPresentation

   
    /* (non-Javadoc)
     * @see org.eclipse.ui.internal.LayoutPart#getSizeFlags(boolean)
     */
    public int getSizeFlags(boolean horizontal) {
        StackPresentation presentation = getPresentation();
       
        if (presentation != null) {
            return presentation.getSizeFlags(horizontal);
        }
       
        return 0;
    }
View Full Code Here

Examples of org.eclipse.ui.presentations.StackPresentation

            }
        }
       
        super.setVisible(makeVisible);
       
        StackPresentation presentation = getPresentation();
       
        if (presentation != null) {
            presentation.setVisible(makeVisible);
        }
       
        if (!makeVisible) {
            for (Iterator iterator = presentableParts.iterator(); iterator.hasNext();) {
                PresentablePart next = (PresentablePart) iterator.next();
View Full Code Here

Examples of org.eclipse.ui.presentations.StackPresentation

        // to do.
        if (current == requestedCurrent) {
            return;
        }

        StackPresentation presentation = getPresentation();
        if (presentation != null) {
       
            presentationCurrent = getPresentablePart(requestedCurrent);
           
            if (!isDisposed()) {
                updateActions(presentationCurrent);
            }
           
            if (presentationCurrent != null && presentation != null) {
                requestedCurrent.createControl(getParent());
                if (requestedCurrent.getControl().getParent() != getControl()
                        .getParent()) {
                    requestedCurrent.reparent(getControl().getParent());
                }

              
                presentation.selectPart(presentationCurrent);
               
             }
       
            // Update the return value of getVisiblePart
            current = requestedCurrent;
View Full Code Here

Examples of org.eclipse.ui.presentations.StackPresentation

    }
   
    public Control[] getTabList(LayoutPart part) {
        if (part != null) {
            IPresentablePart presentablePart = getPresentablePart(part);
            StackPresentation presentation = getPresentation();

            if (presentablePart != null && presentation != null) {
                return presentation.getTabList(presentablePart);
            }
        }

        return new Control[0];
    }
View Full Code Here

Examples of org.eclipse.ui.presentations.StackPresentation

        if (size < minSize) {
            size = minSize;
        }
        this.size = size;

        StackPresentation presentation = getPresentation();
        if (presentation == null || presentation.getControl().isDisposed()) {
            return;
        }
        getPresentation().setBounds(getBounds());
        updateFastViewSashBounds();
    }
View Full Code Here

Examples of org.eclipse.ui.presentations.StackPresentation

        // Temporarily use the same appearance as docked views .. eventually, fastviews will
        // be independently pluggable.
        AbstractPresentationFactory factory = ((WorkbenchWindow) pane
                .getWorkbenchWindow()).getWindowConfigurer()
                .getPresentationFactory();
        StackPresentation presentation = factory.createViewPresentation(
                newClientComposite, site);

        site.setPresentation(presentation);
        site.setPresentationState(IStackPresentationSite.STATE_RESTORED);
        presentation.addPart(currentPane, null);
        presentation.selectPart(currentPane);
        presentation.setActive(StackPresentation.AS_ACTIVE_FOCUS);
        presentation.setVisible(true);

        boolean horizontalResize = Geometry.isHorizontal(side);

        minSize = presentation.computePreferredSize(horizontalResize,
            ISizeProvider.INFINITE,
            Geometry.getDimension(getClientArea(), horizontalResize),
        0);
       
        // Show pane fast.
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.