Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » How to select node in TreeViewer
How to select node in TreeViewer [message #275369] Sun, 07 November 2004 21:06 Go to next message
Eclipse UserFriend
Hello everybody

I have a TreeViewer and its model. How can I select a certain node
within the tree programmatically?

I'm looking for something like treeViewer.setSelection(myNode), similar
to treeViewer.refresh(myNode).

Is there anything like that or do I have to use
treeViewer.getTree().setSelection()?

Thanks in advance for any help on that.

Christian
Re: How to select node in TreeViewer [message #275370 is a reply to message #275369] Sun, 07 November 2004 21:23 Go to previous message
Eclipse UserFriend
> I have a TreeViewer and its model. How can I select a certain node
> within the tree programmatically?

I forgot to mention that I not just need to have a tree item selected, I
also want to get the event as if a user klicked on the item in the tree.

So I would like to get a certain node selected and get a selection
changed event for that.

Is it possible to fire an appropriate selection changed event?

Christian
Previous Topic:M3 Issues
Next Topic:how to add editors in a perspective class ??
Goto Forum:
  


Current Time: Tue Jul 22 22:56:39 EDT 2025

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

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

Back to the top