Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » Show Tree in TreeViewer
Show Tree in TreeViewer [message #1095073] Mon, 26 August 2013 15:30 Go to next message
anthony palmieri is currently offline anthony palmieriFriend
Messages: 20
Registered: July 2013
Junior Member
Hello ,
I Construct a tree with a method , but i have a problem . This code show nothing because items of tree becames null :/
So how can i display a tree in a treeviewer without change input ? Or without display the tree ?
data.initTree(parent, SWT.BORDER);
		treeViewer = new TreeViewer(data.getTree());
		treeViewer.setLabelProvider(new WorkspaceLabelProvider());

And actually when i let only the constructor only one node is showed whereas when i use SWT tree as
initTree(composite parent, SWT.Border)
all node are visible

Thanks for your answers

[Updated on: Tue, 27 August 2013 08:12]

Report message to a moderator

Re: Show Tree in TreeViewer [message #1397113 is a reply to message #1095073] Wed, 09 July 2014 08:05 Go to previous message
Hussein MHANNA is currently offline Hussein MHANNAFriend
Messages: 45
Registered: February 2014
Location: LAVAL
Hi Anthony,

Can you give more details about your problem (because I didn't really understand the problem and what the method initTree do).

Kind Regards,


Previous Topic:TitleAreaDialog - An exception with no message.
Next Topic:Problem compiling JFace snippet
Goto Forum:

Current Time: Fri Nov 16 09:14:39 GMT 2018

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

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

Back to the top