In Eclipse, it is possible to extend to any pop-up menu using the following special location URI:
popup:org.eclipse.ui.popup.any
Is it possible to do the same for the view menus (the little triangle in each view)? (I am developing an Eclipse RCP application, not extending the IDE. The purpose for this item is to help debugging and testing of the application.).
The short answer: no, that is not possible, unless you add the items by hand for all views.
The slightly longer answer: yes, if you
AbstractContributionFactorywith the location URI “menu:<view-id>” and whatevercreateContributionItems(...)you want for each. (Alternatively you can createAbstractMenuAdditionCacheEntryor even betterMenuAdditionCacheEntry– though these are internal and requires a little extra work… The last allows you to have a centrally defined menus extension point that is used for all these additions.)IMenuService.addContributionFactory(AbstractContributionFactory factory)(useIWorkbenchWindow.getService(IMenuService.class)to acquire the menu service).I haven’t tested the above recipe, but I have used something very similar in an application…