Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Contributing Actions to an action set
Contributing Actions to an action set [message #329831] Mon, 07 July 2008 15:35 Go to next message
Eclipse UserFriend
Originally posted by: eclipse-news.rizzoweb.com

Is it possible for one plugin to contribute an action to the actionSet
defined in a different plugin?
I've got a "base" ui plugin, "UIBase" that defines an action set and
associates it with a perspective (via the perspectiveExtensions
extension point). Now I have a secondary plugin, "ExtensionUI" that
needs to add an action to the UIBase action set.
I tried defining a new action set, using the same toolbarPath for its
action as BaseUI's actions, and associating it with the perspective, but
Eclipse treats this as two different toolbars.
I also tried defining an action set in ExtensionUI that had the same ID
as the one in BaseUI, but that just confused Eclipse (the added action
did not show up initially, and the Commands tab of Customize Perspective
got confused with the two action sets sharing an ID).

Is there no way to contribute actions to an existing action set?

Any help appreciated,
Eric
Re: Contributing Actions to an action set [message #329851 is a reply to message #329831] Tue, 08 July 2008 15:21 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Eric Rizzo wrote:
>
> Is there no way to contribute actions to an existing action set?

No, and it should be mentioned in the extension point description.
Action Sets cannot depend on other action sets.

The new menu contributions do support dependencies between them.

Later,
PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse. platform.doc.isv/guide/workbench.htm


Re: Contributing Actions to an action set [message #329860 is a reply to message #329851] Tue, 08 July 2008 17:06 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse-news.rizzoweb.com

Paul Webster wrote:
> Eric Rizzo wrote:
>>
>> Is there no way to contribute actions to an existing action set?
>
> No, and it should be mentioned in the extension point description.
> Action Sets cannot depend on other action sets.

So is there any other way to have a perspective-wide toolbar that can
have items contributed to it by downstream plugins?

Eric
Re: Contributing Actions to an action set [message #329925 is a reply to message #329860] Thu, 10 July 2008 16:43 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Eric Rizzo wrote:
>
> So is there any other way to have a perspective-wide toolbar that can
> have items contributed to it by downstream plugins?
>


I would try adding the toolbar using a menu contribution, something like:


<menuContribution
locationURI="toolbar:org.eclipse.ui.main.toolbar?after=additions ">
<toolbar id="org.eclipse.example.toolbar"/>
</menuContribution>
[/xml]

In theory, the actionSets can see the menu contribution toolbar.

PW


--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/help33/index.jsp?topic=/org.eclipse. platform.doc.isv/guide/workbench.htm


Previous Topic:toolbar contribution via IMenuService with custom source provider and expression
Next Topic:Sorting contributed commands in a Menu
Goto Forum:
  


Current Time: Fri Dec 27 03:12:22 GMT 2024

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

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

Back to the top