Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » hide the parent node in treeviewer
hide the parent node in treeviewer [message #14327] Sun, 14 June 2009 07:00 Go to next message
gaurav dubey is currently offline gaurav dubeyFriend
Messages: 2
Registered: July 2009
Junior Member
Hello All,
I want to hide the parent node from treeviewer.
The treeviewer structure looks like this now.

-DocumentRoot(parent node)
+-Tree1
---item1
---item2
+-Tree2
---item3
---item4
+-Tree3
---item1
---item2

but i dont want that treeviewer will show the documentroot node(parent),
but it will strat from the child nodes of documentroot(which are muliples)
and looks like this..
Tree1
---item1
---item2
Tree2
---item3
---item4
Tree3
---item1
---item2
how can i do this.

Thanks in advance.

Regards
Gaurav
Re: hide the parent node in treeviewer [message #15439 is a reply to message #14327] Fri, 19 June 2009 16:56 Go to previous message
Eclipse UserFriend
Originally posted by: TheRealHawk.Freenet.de

Simply set the DocumentRoot as input to your Viewer and your ContentProvider
should do the rest, because the input is not visible.

Markus

"gaurav dubey" <gauravd2@kpitcummins.com> schrieb im Newsbeitrag
news:9633469a7d0e205bfad59ce0171df49a$1@www.eclipse.org...
> Hello All,
> I want to hide the parent node from treeviewer.
> The treeviewer structure looks like this now.
>
> -DocumentRoot(parent node)
> +-Tree1
> ---item1
> ---item2
> +-Tree2
> ---item3
> ---item4
> +-Tree3
> ---item1
> ---item2
>
> but i dont want that treeviewer will show the documentroot node(parent),
> but it will strat from the child nodes of documentroot(which are muliples)
> and looks like this..
> Tree1
> ---item1
> ---item2
> Tree2
> ---item3
> ---item4
> Tree3
> ---item1
> ---item2
> how can i do this.
>
> Thanks in advance.
>
> Regards
> Gaurav
>
>
>
>
Previous Topic:Views And Eclipse Icons
Next Topic:Tree column resize problem on OS X
Goto Forum:
  


Current Time: Fri Dec 27 03:17:52 GMT 2024

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

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

Back to the top