Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    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] Tue, 18 April 2006 00:43 Go to next message
robin is currently offline robinFriend
Messages: 9
Registered: July 2009
Junior Member
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 04:01 Go to previous messageGo to next message
Rohit Khariwal is currently offline Rohit KhariwalFriend
Messages: 114
Registered: July 2009
Senior Member
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 06:14 Go to previous message
robin is currently offline robinFriend
Messages: 9
Registered: July 2009
Junior Member
Thanks Rohit, it works.
Previous Topic:RCP splash screen window title
Next Topic:Adding functionality to the NavigatorView
Goto Forum:
  


Current Time: Sun Nov 03 16:33:20 GMT 2024

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

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

Back to the top