Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Create Treeviewer inside table
Create Treeviewer inside table [message #666001] Mon, 18 April 2011 14:43 Go to next message
Ricky de Klerck is currently offline Ricky de KlerckFriend
Messages: 295
Registered: January 2011
Senior Member
Hi,

I want to make a treeviewer inside of a tableitem (if this is possible). Does anyone know how to do this?

The reason is that I don't want to make fake root items for my treeviewer, because they are not part of my model. I only want my real data to be displayed in the tree. But they should be categorized by type (in UI). That's the reason I want to show them in a tableitem.

Hope anyone can help me, other suggestions are welcome!

Regards,
Ricky de Klerck
Re: Create Treeviewer inside table [message #666102 is a reply to message #666001] Tue, 19 April 2011 06:56 Go to previous messageGo to next message
Daniel Krügler is currently offline Daniel KrüglerFriend
Messages: 853
Registered: July 2009
Senior Member
On 2011-04-18 16:43, Ricky de Klerck wrote:
> Hi,
>
> I want to make a treeviewer inside of a tableitem (if this is possible).
> Does anyone know how to do this?
>
> The reason is that I don't want to make fake root items for my
> treeviewer, because they are not part of my model. I only want my real
> data to be displayed in the tree. But they should be categorized by type
> (in UI). That's the reason I want to show them in a tableitem.
>
> Hope anyone can help me, other suggestions are welcome!

It is possible to define a TreeViewer with TreeColumns, see e.g.

http://www.java2s.com/Code/Java/SWT-JFace-Eclipse/SWTTreeWit hMulticolumns.htm

as an example. If this is not what you need, you should look at the
Nebula table widget, see

http://www.eclipse.org/nebula/widgets/grid/grid.php

HTH & Greetings from Bremen,

Daniel Krügler
Re: Create Treeviewer inside table [message #666105 is a reply to message #666102] Tue, 19 April 2011 07:22 Go to previous message
Ricky de Klerck is currently offline Ricky de KlerckFriend
Messages: 295
Registered: January 2011
Senior Member
That's what I made so far, but then I have to add a root element, that is not what I want. I want to load my data under a category. I don't want to add this category as an element for my input...
Previous Topic:Display URL object into eclipse.swt.Browser
Next Topic:editor doesn't open on linux (ubuntu 10.10)
Goto Forum:
  


Current Time: Sat May 04 06:06:39 GMT 2024

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

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

Back to the top