Skip to content

Latest commit

 

History

History
17 lines (7 loc) · 875 Bytes

FAQ_How_do_I_add_other_plug-ins_actions_to_my_menus.md

File metadata and controls

17 lines (7 loc) · 875 Bytes

FAQ How do I add other plug-ins' actions to my menus?

Many plug-ins expose their actions as API, allowing you to instantiate them and add them to your menus. The trend in Eclipse 3.0 is to introduce factory methods for creating actions, allowing the actual action implementation to remain hidden. See ActionFactory and IDEActionFactory for examples of such action factories.

Views and editors can register their context menus with the platform to allow other plug-ins to add actions to them dynamically. However, most actions in the platform are not contributed dynamically. It would create a lot of clutter if everyone added actions to everyone else's views.

See Also:

FAQ Can other plug-ins add actions to my part's context menu