Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » How to catch double-click on tree view
How to catch double-click on tree view [message #237439] Fri, 24 July 2009 15:41 Go to next message
Sinisa is currently offline SinisaFriend
Messages: 10
Registered: July 2009
Junior Member
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
Sinisa
Re: How to catch double-click on tree view [message #237468 is a reply to message #237439] Sat, 25 July 2009 07:57 Go to previous message
Eclipse UserFriend
Originally posted by: rene.boettge.gmx.net

Hello Sinisa,

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

René

Sinisa schrieb:
> 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
> Sinisa
>
Previous Topic:Faulty coordinates when using translateToAbsolute & scrolling
Next Topic:limit ellipse to circle
Goto Forum:
  


Current Time: Sun Mar 29 23:09:26 GMT 2020

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

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

Back to the top