Notice: This Wiki is now read only and edits are no longer possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.
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?
This FAQ was originally published in Official Eclipse 3.0 FAQs. Copyright 2004, Pearson Education, Inc. All rights reserved. This text is made available here under the terms of the Eclipse Public License v1.0.