Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » JFace TreeViewer refresh problem
JFace TreeViewer refresh problem [message #927946] Sun, 30 September 2012 05:38 Go to next message
Rameshwar Nagpure is currently offline Rameshwar Nagpure
Messages: 5
Registered: September 2012
Junior Member
Hi,
i want to display parent and child elements using JFace TreeViewer.
When I am displaying parent and child all at once, its working fine.
But I want the child to be added only after expanding the parent element.

The refresh() method is working fine when
ISelectionChangedListener.selectionChanged() 
method is called,

but gives error on calling TreeListener.treeExpanded() method
treeStatute.addTreeListener(new ITreeViewerListener() {			
			@Override
			public void treeExpanded(TreeExpansionEvent event) {
}
});

[Updated on: Sun, 30 September 2012 07:29]

Report message to a moderator

Re: JFace TreeViewer refresh problem [message #928032 is a reply to message #927946] Sun, 30 September 2012 07:55 Go to previous message
Sandeep Yohans is currently offline Sandeep Yohans
Messages: 10
Registered: April 2012
Location: Nagpur, India
Junior Member
the same logic should execute for both select and expand.
Previous Topic:JFace TreeViewer refresh problem
Next Topic:Reevaluate syntax highlighting for entire document
Goto Forum:
  


Current Time: Thu Oct 23 20:44:02 GMT 2014

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

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