Bug 107443 [Presentations] Ability for differing view stack presentations within the one presentation extension
Currently, when creating a presentation, you can differ how views are presentation in only a few ways. Standalone vs regular views and within standalone, with or without a title. For many applications this is insufficient for branding or other reasons. I would like to see the ability to request the views be presented in a specific way. I see this as being implemented by the perspective by passing in some untyped object. The presentation API would interogate that object to determine how the view stack is created.
tests/org.eclipse.ui.tests.performance/src/org/eclipse/ui/tests/performance/presentations/PresentationTestbed.java
updatePresentationBounds();
            }
        });
        
        control.addDisposeListener(new DisposeListener() {
            public void widgetDisposed(DisposeEvent e) {
                site.dispose();
            } 
        });
        
        control.setLayout(new Layout() {
            protected Point computeSize(Composite composite, int wHint, int hHint, boolean flushCache) {
                int widthHint = wHint == SWT.DEFAULT ? ISizeProvider.INFINITE : wHint;
                int heightHint = hHint == SWT.DEFAULT ? ISizeProvider.INFINITE : hHint;
                
                int width = 200;
                int height = 200;
                StackPresentation presentation = site.getPresentation();
                if (presentation != null) {
                    width = presentation.computePreferredSize(true, widthHint, heightHint, widthHint);
                    height = presentation.computePreferredSize(false, heightHint, widthHint, heightHint);
                }
                
                if (width == ISizeProvider.INFINITE) {
                    width = 200;
                }
                if (height == ISizeProvider.INFINITE) {
                    height = 200;
                }