Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » Double-click for objects in view.
Double-click for objects in view. [message #313920] Wed, 28 March 2007 04:57 Go to next message
Eclipse UserFriend
Hi,

I'm writing a "generic" view which is capable of displaying different types
of data; each of displayed data will have a popup menu with OPEN and CLOSE
actions, those actions will be different for different types of objects.

I'd like to add double click behavior for displayed elements and I'd like to
use proper OPEN action for it.



Is there some common/easy way to do it (extension point etc)? The problem is
that actions for objects will be defined in separate plugins.



Thanks in advance

Piotr
Re: Double-click for objects in view. [message #313941 is a reply to message #313920] Wed, 28 March 2007 12:26 Go to previous message
Eclipse UserFriend
If you create an open command and handlers that are active based on the
selection, in your double click listener you can just use the
IHandlerService to execute the command. It'll pick the right one.

Later,
PW
Previous Topic:Eclipse Project Caching Help
Next Topic:EditorPart-isDirty and doSave implementation
Goto Forum:
  


Current Time: Tue Jul 22 20:34:09 EDT 2025

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

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

Back to the top