Problems with Popups [message #399165] |
Thu, 09 December 2004 11:05 |
Eclipse User |
|
|
|
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 #400298 is a reply to message #400259] |
Wed, 15 December 2004 15:07 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.02630 seconds