|Re: How to catch double-click on tree view [message #237468 is a reply to message #237439]
||Sat, 25 July 2009 07:57
Originally posted by: rene.boettge.gmx.net|
you can use a sample project from eclipse to have a look inside....
Create a new plug-in project, leave the default settings and use the
next button until you reach the page "templates". There you can select
"Plug-in project with a view". After clicking NEXT you can select to
create a Tree viewer. When you generated the code just have a look into
the package "yourName.views". If you didn't change the default values
you should find a class "SampleView". Now you can have a look how to use
"doubleClickAction" for instance....I used this as well...it's very helpful.
To show your created view care about having selected the new plug-in in
your run configurations(also care about having selected all required
plugins). After starting a new instance of eclipse you can open your
view as known under "Window - Show View - Other - SampleCategory".
I hope this helps
> Hi all, I have one short, simple question..
> How to customize double-click on Project Explorer tree view?
> I can see my nodes in the tree, but there is no action on double click.
> What I want to do is to open sub-diagram on double click.
> I know how to open diagram, but I can't (or I don't now how) add
> listener to the tree.
> Can someone please tell me what to do?
> Thanks and regards
Powered by FUDForum
. Page generated in 0.03964 seconds