Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Menu contributions from multiple plugins
Menu contributions from multiple plugins [message #330822] Thu, 14 August 2008 09:01 Go to next message
Richard Craddock is currently offline Richard CraddockFriend
Messages: 31
Registered: July 2009
Member
I have some menu contributions that are made from a base plugin using the
org.eclipse.ui.actionSets extension point.

I now wish to add to those menus from another plugin, but I can't seem to
make it work. The items in my new plugin don't appear anywhere, and I can
see no errors anywhere either.

I'm guessing that the problem is EITHER :

a) The base contributions need to expose something somewhere to allow
other things to add to them, OR
b) I need to add something to the reference to say where the base
definitions reside (ie a pointer to the base plugin), OR
c) something different entirely :-)

Can anyone point me in the right direction please?

Thanks,

Richard
Re: Menu contributions from multiple plugins [message #330837 is a reply to message #330822] Thu, 14 August 2008 13:27 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse-news.rizzoweb.com

Richard Craddock wrote:
> I have some menu contributions that are made from a base plugin using
> the org.eclipse.ui.actionSets extension point.
>
> I now wish to add to those menus from another plugin, but I can't seem
> to make it work. The items in my new plugin don't appear anywhere, and I
> can see no errors anywhere either.
>
> I'm guessing that the problem is EITHER :
>
> a) The base contributions need to expose something somewhere to allow
> other things to add to them, OR
> b) I need to add something to the reference to say where the base
> definitions reside (ie a pointer to the base plugin), OR
> c) something different entirely :-)
>
> Can anyone point me in the right direction please?

Action sets are not extensible, as I recently learned. See this message
and the rest of the thread it is part of:
http://dev.eclipse.org/newslists/news.eclipse.platform/msg76 240.html

Hope this helps,
Eric
Re: Menu contributions from multiple plugins [message #330843 is a reply to message #330837] Thu, 14 August 2008 13:55 Go to previous messageGo to next message
Richard Craddock is currently offline Richard CraddockFriend
Messages: 31
Registered: July 2009
Member
Hi Eric,

thanks for the answer - I guess we'll have to do some redefintion of stuff
into MenuContributions....

Richard

Eric Rizzo wrote:

> Richard Craddock wrote:
>> I have some menu contributions that are made from a base plugin using
>> the org.eclipse.ui.actionSets extension point.
>>
>> I now wish to add to those menus from another plugin, but I can't seem
>> to make it work. The items in my new plugin don't appear anywhere, and I
>> can see no errors anywhere either.
>>
>> I'm guessing that the problem is EITHER :
>>
>> a) The base contributions need to expose something somewhere to allow
>> other things to add to them, OR
>> b) I need to add something to the reference to say where the base
>> definitions reside (ie a pointer to the base plugin), OR
>> c) something different entirely :-)
>>
>> Can anyone point me in the right direction please?

> Action sets are not extensible, as I recently learned. See this message
> and the rest of the thread it is part of:
> http://dev.eclipse.org/newslists/news.eclipse.platform/msg76 240.html

> Hope this helps,
> Eric
Re: Menu contributions from multiple plugins [message #330871 is a reply to message #330843] Thu, 14 August 2008 19:28 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: eclipse-news.rizzoweb.com

Richard Craddock wrote:
> Hi Eric,
>
> thanks for the answer - I guess we'll have to do some redefintion of
> stuff into MenuContributions....

If you get things to work the way you want them, please consider putting
together an article or brief description and example. I find that the
documentation and existing examples of this stuff are scarce.
I'm particularly interested in having a common toolbar that is defined
by one plugin but contributed to by others. I tried a simple example of
that but couldn't get it to work and had to move on to other things for
the time being.

Eric



> Eric Rizzo wrote:
>
>> Richard Craddock wrote:
>>> I have some menu contributions that are made from a base plugin using
>>> the org.eclipse.ui.actionSets extension point.
>>>
>>> I now wish to add to those menus from another plugin, but I can't
>>> seem to make it work. The items in my new plugin don't appear
>>> anywhere, and I can see no errors anywhere either.
>>>
>>> I'm guessing that the problem is EITHER :
>>>
>>> a) The base contributions need to expose something somewhere to allow
>>> other things to add to them, OR
>>> b) I need to add something to the reference to say where the base
>>> definitions reside (ie a pointer to the base plugin), OR
>>> c) something different entirely :-)
>>>
>>> Can anyone point me in the right direction please?
>
>> Action sets are not extensible, as I recently learned. See this
>> message and the rest of the thread it is part of:
>> http://dev.eclipse.org/newslists/news.eclipse.platform/msg76 240.html
>
>> Hope this helps,
>> Eric
>
>
Re: Menu contributions from multiple plugins [message #330934 is a reply to message #330871] Mon, 18 August 2008 14:25 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

Eric Rizzo wrote:
> Richard Craddock wrote:
>> Hi Eric,
>>
>> thanks for the answer - I guess we'll have to do some redefintion of
>> stuff into MenuContributions....
>
> If you get things to work the way you want them, please consider putting
> together an article or brief description and example. I find that the
> documentation and existing examples of this stuff are scarce.
> I'm particularly interested in having a common toolbar that is defined
> by one plugin but contributed to by others. I tried a simple example of
> that but couldn't get it to work and had to move on to other things for
> the time being.

Do you mean within one of your parts, or simply defining a main toolbar
that others can contribute to? The second should work in 3.3:

PluginA:

<extension
point="org.eclipse.ui.menus">
<menuContribution
locationURI="toolbar:org.eclipse.ui.main.toolbar?after=additions ">
<toolbar
id="z.ex.monkey.scripts">
<separator name="group0" visible="false"/>
<separator name="additions" visible="false"/>
<separator name="group1" visible="false"/>
</toolbar>
</menuContribution>
</extension>
[/xml]


PluginB:

<extension
point="org.eclipse.ui.menus">
<menuContribution
locationURI="toolbar:z.ex.monkey.scripts?after=additions">
<command commandId="org.eclipse.ui.edit.copy"/>
</menuContribution>
</extension>
[/xml]

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


Previous Topic:Show progress of GUI process
Next Topic:eclipse key bindings
Goto Forum:
  


Current Time: Tue Jul 16 13:06:25 GMT 2024

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

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

Back to the top