Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Double click on CNF viewer items
Double click on CNF viewer items [message #648613] Thu, 13 January 2011 16:51 Go to next message
Giovanni De Sossi is currently offline Giovanni De SossiFriend
Messages: 161
Registered: October 2009
Location: Rome, Italy
Senior Member

Hi,

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.
Re: Double click on CNF viewer items [message #648636 is a reply to message #648613] Thu, 13 January 2011 17:58 Go to previous messageGo to next message
Francis Upton IV is currently offline Francis Upton IVFriend
Messages: 472
Registered: July 2009
Location: Oakland, CA
Senior Member
There are two ways to do this:

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:

http://www.eclipse.org/forums/index.php?t=msg&th=147316& amp;start=0&

http://scribbledideas.blogspot.com/2006/06/building-common-n avigator-_115067357450703178.html



Re: Double click on CNF viewer items [message #648731 is a reply to message #648636] Fri, 14 January 2011 10:01 Go to previous message
Giovanni De Sossi is currently offline Giovanni De SossiFriend
Messages: 161
Registered: October 2009
Location: Rome, Italy
Senior Member

Hi Francis,

thank you very much: I tried the first way you have suggested and it works perfectly.

Regards,

Giovanni
Previous Topic:ScaleFieldEditor / display range
Next Topic:Use DTP in my RCP project
Goto Forum:
  


Current Time: Tue Apr 23 08:19:18 GMT 2024

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

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

Back to the top