Skip to main content

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.

Jump to: navigation, search

Difference between revisions of "FAQ How do I add other plug-ins' actions to my menus?"

 
 
Line 16: Line 16:
 
== See Also: ==
 
== See Also: ==
  
[[FAQ_Can_other_plug-ins_add_actions_to_my_part%26%23146%3Bs_context_menu%3F]]
+
[[FAQ_Can_other_plug-ins_add_actions_to_my_part%27s_context_menu%3F]]
  
 
<hr><font size=-2>This FAQ was originally published in [http://www.eclipsefaq.org Official Eclipse 3.0 FAQs]. Copyright 2004, Pearson Education, Inc. All rights reserved. This text is made available here under the terms of the [http://www.eclipse.org/legal/epl-v10.html Eclipse Public License v1.0].</font>
 
<hr><font size=-2>This FAQ was originally published in [http://www.eclipsefaq.org Official Eclipse 3.0 FAQs]. Copyright 2004, Pearson Education, Inc. All rights reserved. This text is made available here under the terms of the [http://www.eclipse.org/legal/epl-v10.html Eclipse Public License v1.0].</font>

Latest revision as of 09:50, 9 February 2024

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&#146;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.

Back to the top