Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsDouble click on CNF viewer items
https://www.eclipse.org/forums/index.php/mv/msg/202969/648613/#msg_648613
I have an RCP app with a navigator built on CNF; I developed several commands who acts upon navigator objects (Open, Modify,....) but only in a popup menu, by right-clicking on the object itself. Now I need to fire some command by double-click on an object: I'm new on CNF, someone can suggest a possible solution?
Thanx,
Giovanni.]]>Giovanni De Sossi2011-01-13T16:51:27-00:00Re: Double click on CNF viewer items
https://www.eclipse.org/forums/index.php/mv/msg/202969/648636/#msg_648636
1) Register a double click listener on the CommonViewer (use CommonNavigator.getCommonViewer() to get the viewer). Then you can directly respond to the double clicks.
2) By default the CNF uses a retargetable Open action to handle double clicks. Here are a couple of links that talk about that:
]]>Francis Upton IV2011-01-13T17:58:46-00:00Re: Double click on CNF viewer items
https://www.eclipse.org/forums/index.php/mv/msg/202969/648731/#msg_648731
thank you very much: I tried the first way you have suggested and it works perfectly.
Regards,
Giovanni]]>Giovanni De Sossi2011-01-14T10:01:18-00:00