• Post Reply Bookmark Topic Watch Topic
  • New Topic

expandToLevel in jface tree viewer.  RSS feed

 
Bharath Raja
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is there any option to expand a particular content of tree viewer without touching anything on tree viewer..? My requirement is I've a tree Viewer, content is my own class, I've shown this tree view while one action is performed on another view, For this loading tree view, I've to expand the specific content of my tree viewer.. This expansion should be happen without touching the tree view content.
I've tried with expandToLevel() method with argument as Object (compatible type of my tree viewer content class), AbstractTreeEditor.ALL_LEVELS, but this wasn't help me...
 
Bharath Raja
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
After long struggle I've got the solution for expanding particular content of tree with out any listener, using the following code

 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!