Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » How to change the default position for popupMenu
How to change the default position for popupMenu [message #480133] Fri, 14 August 2009 02:32 Go to next message
Eclipse UserFriend
Originally posted by: zhiwei.ecquaria.com

I use extension point "org.eclipse.ui.popupMenus" add a new right click
popup menu. it like below,the problem is it always show on bottom of the
whole popup menu(under those eclipse system default popup menus),so is
there a way that let
my menu on top of the popupmenu?

<extension point="org.eclipse.ui.popupMenus">
<objectContribution
adaptable="true"
objectClass="org.eclipse.core.resources.IResource"
id="xxxx">
<menu
label="ABC"
path="abc"
id="xxx">
</menu>
</objectContribution>
</extension>
Re: How to change the default position for popupMenu [message #480208 is a reply to message #480133] Fri, 14 August 2009 11:36 Go to previous message
Adam Neal is currently offline Adam NealFriend
Messages: 40
Registered: July 2009
Member
you could try using the org.eclipse.ui.menus extension point. Then you can
specify the location that you want your command to be shown....

"zhiwei " <zhiwei@ecquaria.com> wrote in message
news:f95c1a4807ac589da4e3d87fa6e9fc1a$1@www.eclipse.org...
>I use extension point "org.eclipse.ui.popupMenus" add a new right click
>popup menu. it like below,the problem is it always show on bottom of the
>whole popup menu(under those eclipse system default popup menus),so is
>there a way that let my menu on top of the popupmenu?
>
> <extension point="org.eclipse.ui.popupMenus">
> <objectContribution
> adaptable="true"
> objectClass="org.eclipse.core.resources.IResource"
> id="xxxx">
> <menu
> label="ABC"
> path="abc"
> id="xxx">
> </menu>
> </objectContribution> </extension>
>
Previous Topic:How To Hide The URL From Web Browser Editor
Next Topic:switching perspective doesn't seem to restore selection variable in Eclipse 3.5
Goto Forum:
  


Current Time: Tue Sep 24 03:29:23 GMT 2024

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

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

Back to the top