Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Re: manage menu contribution
Re: manage menu contribution [message #324027] Wed, 16 January 2008 13:47 Go to next message
Eclipse UserFriend
Matthias Schmidt wrote:
> Hi there,
>
> I have a problem with a context menu in my applications. This menu is
> composed of many menu contributions from different plug-ins. Now I want
> to change the order of these contributions and don't know how. Is there
> an easy way to manage the menu contributions to control such issues?
>
> Thanks,
> Matthias

redirecting to platform.

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: manage menu contribution [message #324094 is a reply to message #324027] Thu, 17 January 2008 10:26 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: matthias.schmidt.xactium.com

Hi Paul,

I'm afraid I don't know what you're trying to tell me...
I now tried a lot of things and read through a lot of stuff. But I
didn't managed it.

I have found an interesting article:
http://www.eclipse.org/articles/article.php?file=Article-act ion-contribution/index.html

saying, that "The order in which the actions are added to the menu and
sub menu is in the same order of how they are listed in the plugin.xml
file."

But my menu consists of actions and menus of various plug-ins. So how do
I control the order of these menu items?

Thanks a lot,
Matthias


Paul Webster wrote:
> Matthias Schmidt wrote:
>> Hi there,
>>
>> I have a problem with a context menu in my applications. This menu is
>> composed of many menu contributions from different plug-ins. Now I
>> want to change the order of these contributions and don't know how. Is
>> there an easy way to manage the menu contributions to control such
>> issues?
>>
>> Thanks,
>> Matthias
>
> redirecting to platform.
>
> PW
>
Re: manage menu contribution [message #324095 is a reply to message #324027] Thu, 17 January 2008 10:27 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: matthias.schmidt.xactium.com

Hi Paul,

I'm afraid I don't know what you're trying to tell me...
I now tried a lot of things and read through a lot of stuff. But I
didn't managed it.

I have found an interesting article:
http://www.eclipse.org/articles/article.php?file=Article-act ion-contribution/index.html

saying, that "The order in which the actions are added to the menu and
sub menu is in the same order of how they are listed in the plugin.xml
file."

But my menu consists of actions and menus of various plug-ins. So how do
I control the order of these menu items?

Thanks a lot,
Matthias


Paul Webster wrote:
> Matthias Schmidt wrote:
>> Hi there,
>>
>> I have a problem with a context menu in my applications. This menu is
>> composed of many menu contributions from different plug-ins. Now I
>> want to change the order of these contributions and don't know how. Is
>> there an easy way to manage the menu contributions to control such
>> issues?
>>
>> Thanks,
>> Matthias
>
> redirecting to platform.
>
> PW
>
Re: manage menu contribution [message #324097 is a reply to message #324027] Thu, 17 January 2008 10:33 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: matthias.schmidt.xactium.com

Hi Paul,

I'm afraid I didn't get your point.
Can you give me more details?

Thanks,
Matthias


Paul Webster wrote:
> Matthias Schmidt wrote:
>> Hi there,
>>
>> I have a problem with a context menu in my applications. This menu is
>> composed of many menu contributions from different plug-ins. Now I
>> want to change the order of these contributions and don't know how. Is
>> there an easy way to manage the menu contributions to control such
>> issues?
>>
>> Thanks,
>> Matthias
>
> redirecting to platform.
>
> PW
Re: manage menu contribution [message #324104 is a reply to message #324094] Thu, 17 January 2008 11:21 Go to previous message
Eclipse UserFriend
I didn't have a point before, except that actions are part of platform,
not SWT, and so there would probably be better answers in this group :-)


However, depending on which extensions you are using the order of
contributions is 1) path order followed by 2) plugin id descending order

For example, in the legacy extension points it was common to define a
menu with a lot of group markers or separators.

Other plugins that contribute use the same menu/group marker pattern and
the actions include the group marker as part of their path to help
specify the location.

Which extension points are you specifically using?

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:Icon problem with new menus extension point
Next Topic:Editor model contained in EditorInput or EditorPart?
Goto Forum:
  


Current Time: Mon Jul 14 00:07:53 EDT 2025

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

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

Back to the top