aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes expandToLevel in jface tree viewer. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "expandToLevel in jface tree viewer." Watch "expandToLevel in jface tree viewer." New topic
Author

expandToLevel in jface tree viewer.

Bharath Raja
Ranch Hand

Joined: Jan 21, 2009
Posts: 111
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...


Life is either daring something or nothing - Helen Keller
Bharath Raja
Ranch Hand

Joined: Jan 21, 2009
Posts: 111
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.
 
subject: expandToLevel in jface tree viewer.