Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

expandToLevel in jface tree viewer.

 
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

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic