so I would want to add a toolbar to my part, but the toolbar only appears if the part is in a Part Stack. If it is the case, the part toolbar is shown but also the minimize maximize controls and the Part Stack heder thing, which is normal, but has this special eclipse- or RCP look which I would want to avoid.
Does anyone know how to add a toolbar via the application model or otherwise, with just the toolbaritems showing and nothing else ?
Lars Vogel shows how to add a toolbar item, but he doesn't mention that it will only work for Parts in Part Stacks ...

btw: I using eclipse Luna with e4 tools 0.15
Using the standard SWT renderers, the toolbar of a Part will only be rendered if the Part ist in a PartStack. The reason for this is that it is the PartStackRenderer that creates to toolbar and switches it if a different partis selected.
What you can do is put the Part in a PartStack and then put the PartStack inside of the PartSashContainer.
If you want to render the toolbar of a Part inside of a toolbar of your TrimmedWindow, you would need to write your own renderer for TrimmedWindow. Here you can scan for embedded parts that need to show their toolbar and then react accordingly.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With