Project: Eclipse_Platform_UI
Bug 282016 [UI] Remove Menu/TB creation from the PartRenderer
Reported: 2009-06-30 10:36:12 | Status: resolved fixed

The code currently 'automatically' creates any defined menu or toolbar in the model as direct children of the newly rendered part. This is incorrect in that a part's menu/toolbar is 'hosted' by its parent part (i.e. a view's toolbar is managed by its containing CTabFolder). It also ends up with a toolbar 'floating' on top of the view in the compatibility layer. We should remove this code and leave the management of the menu and toolbar to the various part factories themselves.

Files changed in fix:
bundles/org.eclipse.e4.ui.workbench.renderers.swt/src/org/eclipse/e4/workbench/ui/renderers/swt/WBPartFactory.java bundles/org.eclipse.e4.ui.workbench/src/org/eclipse/e4/workbench/ui/renderers/PartRenderer.java