Text editor popup action
How does one targetall registered context menus? One of the significant problems with the 3.2 eclipse is creeping IDE inconsistency, esp for popup menus. This inconsistency is a consequence of plugin dependent function. Having file-type dependent popups is a nice optional feature, but more critical for users is to have core function always available. There does not seem to be a mechanism to add menu items to all popups or to remove items on user preference. (I think these abilities are available for the menu bar and tool bars but I never use them, they are too slow). An example of the consequences is the AnyEdit plugin, which has pages of XML attempting to enumerate all editors in all versions of eclipse! One approach would allow regular expressions in the targetID (in the current scheme) for actions and urge editor plugin writers to adopt a uniform naming scheme. A better solution would allow users to configure global settings on popups for editors.
Johnjbarton.johnjbarton.com comments moved from document (Oct 20th, 2006)
- Part of this exercise will split up menu item placement from menu item visibility. You would be able to place an item in all context menus, and then specify its visibility.
- --Pwebster.ca.ibm.com 21:01, 23 October 2006 (EDT)
The article references IMenuService, which seems to be an undocumented internal API. It even took me a while to realize this. --Johnjbarton.johnjbarton.com 23:46, 6 November 2006 (EST)