Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Problems with Popups
Problems with Popups [message #399165] Thu, 09 December 2004 11:05 Go to next message
Eclipse UserFriend
Originally posted by: jer.globalware.ag

Hello all.

I understand that you can contribute to a popup menu of some view by adding
something like this to your plugin.xml:
<viewerContribution id="my.viewercontributionid"
targetID="my.view.to.add.action">

<action id="my.actionid" label="View Action" menubarPath="additions"
class="my.action" enablesFor="*" />

</viewerContribution>


Now here come my two problems:
1. One view I need to add actions to the popup menu, does not implement a
popup menu. Is there any way to add one using the plugin.xml?
2. The developer of another view obviously used manager.add(new
Separator("Additions")); more than once in his fillContextMenu() method. Is
there any way to add an action to a specific "Additions" separator or will
eclipse always use the first one that it finds in the popup menu?

Any help is appreciated!

Kind Regards
Johannes Erk
Re: Problems with Popups [message #400259 is a reply to message #399165] Sat, 11 December 2004 02:09 Go to previous messageGo to next message
Nick Edgar is currently offline Nick EdgarFriend
Messages: 439
Registered: July 2009
Senior Member
Johannes Erk wrote:
> 1. One view I need to add actions to the popup menu, does not implement a
> popup menu. Is there any way to add one using the plugin.xml?

Unfortunately, no. You can, however add to the view's toolbar or view
menu (triangle menu) using the org.eclipse.ui.viewExtensions extension
point.

> 2. The developer of another view obviously used manager.add(new
> Separator("Additions")); more than once in his fillContextMenu() method. Is
> there any way to add an action to a specific "Additions" separator or will
> eclipse always use the first one that it finds in the popup menu?

It will always find the first one. Can you get them to fix their menu?
It's kind of bad style to define multiple slots for additions.
Alternatively, specify some other group id, and it will add the group to
the end if not found.

If this doesn't work for you, please file an enhancement request against
Platform UI describing what you're trying to achieve and the constraints
in more detail.

Nick
Re: Problems with Popups [message #400298 is a reply to message #400259] Wed, 15 December 2004 15:07 Go to previous message
Eclipse UserFriend
Originally posted by: jer.globalware.ag

Ok, thanks.
I'll tell them ;)

Johannes


"Nick Edgar" <nick_edgar@_no.spam.please_.ca.ibm.com> schrieb im Newsbeitrag
news:cpdksa$r8d$1@www.eclipse.org...
> Johannes Erk wrote:
> > 1. One view I need to add actions to the popup menu, does not implement
a
> > popup menu. Is there any way to add one using the plugin.xml?
>
> Unfortunately, no. You can, however add to the view's toolbar or view
> menu (triangle menu) using the org.eclipse.ui.viewExtensions extension
> point.
>
> > 2. The developer of another view obviously used manager.add(new
> > Separator("Additions")); more than once in his fillContextMenu() method.
Is
> > there any way to add an action to a specific "Additions" separator or
will
> > eclipse always use the first one that it finds in the popup menu?
>
> It will always find the first one. Can you get them to fix their menu?
> It's kind of bad style to define multiple slots for additions.
> Alternatively, specify some other group id, and it will add the group to
> the end if not found.
>
> If this doesn't work for you, please file an enhancement request against
> Platform UI describing what you're trying to achieve and the constraints
> in more detail.
>
> Nick
Previous Topic:Using different Plugins
Next Topic:Job Dialog visualization problem
Goto Forum:
  


Current Time: Thu Apr 25 19:27:00 GMT 2024

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

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

Back to the top