This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
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


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
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

 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: expandToLevel in jface tree viewer.
 
Similar Threads
integrating JQuery and Struts tiles
Jasper Viewer
Jasper Viewer
Expanding a tree without TreeViewer SWT/JFaces
Checkbox node update