View which listens for double-clicks in other views [message #132192] |
Thu, 26 January 2006 16:20 |
Eclipse User |
|
|
|
Originally posted by: marko.skarica.gmail.com
I can't seem to find a way to get a view to listen for double-clicks on
another view, rather than only listening for double-clicks in itself. I'm
trying to use the IDoubleClickListener() class, but I can't seem to get
anywhere.
I can get a view to listen for selection changes in other views (one that
has a treeViewer), so I would figure that double-click wouldn't work too
differently, but looks like I'm wrong.
Does anyone have any idea where I can find an example which will help me
accomplish what I'm trying to do?
Basically, I have a view which is a treeViewer which displays a directory
tree starting from a folder I specified. When a user double-clicks on a
file, I want it to open in an editor view that we also have created. The
editor view just needs to know what the path is to the file which was
double-clicked so it can read that file, parse it, and display the objects
in the editor(its actually an image canvas). But I just can't find a way
for the view to listen for double-clicks in the treeviewer.
Please help.
|
|
|
Powered by
FUDForum. Page generated in 0.06369 seconds