Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Platform » Getting the menu items programmatically
Getting the menu items programmatically [message #305131] Fri, 23 June 2006 08:37 Go to next message
Krassimir Kondarev is currently offline Krassimir Kondarev
Messages: 32
Registered: July 2009
Member
Hi all,

is it possible to somehow get the currently active menu (ot context menu)
and the menu item under the mouse cursor? Something like
Display.getDefault().getCursorControl()... but getting menu items also?

Thank you!
Krassimir
Re: Getting the menu items programmatically [message #305185 is a reply to message #305131] Mon, 26 June 2006 02:41 Go to previous message
Krassimir Kondarev is currently offline Krassimir Kondarev
Messages: 32
Registered: July 2009
Member
I noticed that the display.getCursorControl() returns Shell if the mouse
is over the menus (File, Edit ... Window, Help).
Well... we now have methods such shell.getMenuBar().getItem(index)... and
this is the index in witch the items are inserted in the menu bar.
Unfortunately the returned MenuItem instance do not contain any "size"
related information, so I can not do the location-index mapping by
itterating ovet the items... any ideas?
Previous Topic:Re: Update manager not working on SUSE Linux 10.1
Next Topic:PageBook and TreeViewer
Goto Forum:
  


Current Time: Mon Jul 28 10:33:05 EDT 2014

Powered by FUDForum. Page generated in 0.02773 seconds