Community
Participate
Working Groups
build I20040219 RCP apps need the ability to hide workbench window controls like the menubar, coolbar, perspective switcher, and fast view docks. The perspective switcher is the right child of a CBanner in the WorkbenchWindow layout (along with the CoolBar at left). I've tried hiding the perspective switcher by only setting it as the right control if it should be shown, but the curve still appears in this case. We should also consider how the window should look if they hide the coolbar but not the perspective switcher. It should probably just take the whole row, with no curve. Can CBanner be made to only draw the curve (and its tail) if both a right control and a left control (and/or a middle control) is set? If there is only one control set, it would basically act like a composite. I know it's possible to use different controls to get the layout as needed, but it would be better if CBanner handled this, since this would simplify our layout logic and since we may encounter cases where the perspective switcher gets turned on and off dynamically.
Created attachment 8047 [details] Screen shot of browser example The attached screen shot shows how the browser example currently looks with the perspective bar hidden.
OOBE Intro needs this too.
I think you should use a Composite insetad of a CBanner in the case where you only have one thing to show. It affects not only the drawing of the swoosh but also the margins, computeSize, computeTrim etc, etc.
Fixed. Please reopen if you are not satisfied.