Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Can I programmatically add actions to menu from plugin?
Can I programmatically add actions to menu from plugin? [message #448301] Thu, 20 April 2006 13:58 Go to next message
Eclipse UserFriend
Originally posted by: msullivan.nmss.com

I have an existing Swing application that builds panels based on class and
property information stored in XML. As a bridge to a full migration to
Eclipse/SWT, I want to create a wrapper view and a wrapper action that I can
wrap my current panel/actions in and add the actions to the menu bar.

I'd want to add the actions during the start(BundleContext context) method
of my plugins class.

Is this a 'no-no' or is there a valid way of accomplishing this? I can't
seem to find a reference to the ActionBarAdvisor where I would think such a
change should be done.

Thanks,
Mike
Re: Can I programmatically add actions to menu from plugin? [message #448382 is a reply to message #448301] Mon, 24 April 2006 09:17 Go to previous message
Eclipse UserFriend
When you're in a view, you can use getSite().getActionBars() to get the
IActionBars. From there you can get the menu manager to add actions to
eclipse.

Later,
PW
Previous Topic:JFace Databinding Example
Next Topic:Best practice using RCP with separate server
Goto Forum:
  


Current Time: Sat Aug 30 23:54:01 EDT 2025

Powered by FUDForum. Page generated in 0.05932 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top