Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » How to associate a tree node double click action to a menu item action?
How to associate a tree node double click action to a menu item action? [message #447840] Mon, 17 April 2006 20:43 Go to next message
Eclipse UserFriend
Hi,

In my RCP application, I want to associate a tree node double click action to a menu item action, f.g. I have a tree node item named "Preference..." in a treeviewer of a view, I want to open the Preference dialog when the node double clicked just like clicking the Preference... in the Window menu in Eclipse, I do not want to rewrite the code open code because I have a menu item to do so, I just want to simply associate the node double event to that menu item action, does it make sense? how to do?

Thanks.
Re: How to associate a tree node double click action to a menu item action? [message #447925 is a reply to message #447840] Tue, 18 April 2006 00:01 Go to previous messageGo to next message
Eclipse UserFriend
you can call the run() method of the action to the double click listener of the tree node.
Re: How to associate a tree node double click action to a menu item action? [message #447926 is a reply to message #447925] Tue, 18 April 2006 02:14 Go to previous message
Eclipse UserFriend
Thanks Rohit, it works.
Previous Topic:RCP splash screen window title
Next Topic:Adding functionality to the NavigatorView
Goto Forum:
  


Current Time: Sun Jul 06 00:58:25 EDT 2025

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

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

Back to the top