Skip to main content


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 12:37 Go to next message
Krassimir Kondarev is currently offline Krassimir KondarevFriend
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 06:41 Go to previous message
Krassimir Kondarev is currently offline Krassimir KondarevFriend
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: Fri Apr 26 15:18:54 GMT 2024

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

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

Back to the top