Skip to main content



      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
Eclipse UserFriend
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
Eclipse UserFriend
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: Sun Jul 13 11:04:09 EDT 2025

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

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

Back to the top