Community
Participate
Working Groups
Build Identifier: Version:4.2 - Build id:I20120608-1400 When contribution a control by the extension point "org.eclipse.ui.menus" to a view toolbar, the control does not appear. It seems to be a problem with a null parent, which is invoked, what leads to a NullPointerException. See the attachment for the exception stack trace and a modified "Mail RCP Sample App" to reproduce the error. Reproducible: Always
Created attachment 217957 [details] Exception Stack Trace
Created attachment 217959 [details] (Modified) Mail RCP Sample for reproducing the error
org.eclipse.ui.internal.menus.CompatibilityWorkbenchWindowControlContribution assumes it will be in a trim bar: MUIElement parent = toolControl.getParent(); while (!(parent instanceof MTrimBar)) { parent = parent.getParent(); } But in this case, it will be contained within a view MToolBar. PW
I'm not able to recreate the issue. Probably it has been fixed by the patch for the Bug 414741. I'm going to set the 'WORKSFORME' status for the bug. Please reopen it when the issue occurs again Daniel