Skip to main content



      Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Popup location of context menu contributed by a MenuManager
Popup location of context menu contributed by a MenuManager [message #509145] Thu, 21 January 2010 09:01 Go to next message
Eclipse UserFriend
Hi.

Is there an easy way to get the location (the coordinates where the user clicked) of a context menu that is contributed by a MenuManager? There is no event object I can ask for in IMenuListener.

Also asked that some days ago in the JFace group (without any answers). Maybe here is someone who can help. So I am sorry for cross posting.

Regards,
Kai
Re: Popup location of context menu contributed by a MenuManager [message #509151 is a reply to message #509145] Thu, 21 January 2010 09:17 Go to previous message
Eclipse UserFriend
MenuManager simply adds an SWT MenuListener to the Menu, and then calls
its own IMenuListener. Without being about to get the SWT Event or
MenuEvent I don't think that information is available in any MenuManager
listener.

PW


--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm
Previous Topic:best way to create a tablefolder with lots of button
Next Topic:[Cocoa] Annoying system beep/bell
Goto Forum:
  


Current Time: Wed Jul 23 10:34:59 EDT 2025

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

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

Back to the top