Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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 14:01 Go to next message
Kai Schlamp is currently offline Kai SchlampFriend
Messages: 344
Registered: July 2009
Senior Member
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 14:17 Go to previous message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

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: Thu Apr 25 00:31:00 GMT 2024

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

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

Back to the top