Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » jface treeviewer with 2 columns
jface treeviewer with 2 columns [message #1015916] Mon, 04 March 2013 09:26 Go to next message
Mokhtar Alshubei is currently offline Mokhtar AlshubeiFriend
Messages: 121
Registered: November 2011
Location: Germany
Senior Member
Hi,

is there a way to create a treeviewer with two columns? I know it is Yes but i mean here where both columns have same structure. Assume you have an object 'car' with some properties that change over time. you have this data as versions and want to fill a tree with it so that every column (along with its children) represents one time stamp. The intention here is to make kind of line-to-line comparison.
I couldn't adapt the classes implementing Contentprovider and StyledCellLabelProvider to get this done.

Thanks alot,
Mok
Re: jface treeviewer with 2 columns [message #1015941 is a reply to message #1015916] Mon, 04 March 2013 10:59 Go to previous messageGo to next message
Daniel Krügler is currently offline Daniel KrüglerFriend
Messages: 853
Registered: July 2009
Senior Member
On 2013-03-04 10:26, Xtexter Mising name wrote:
> is there a way to create a treeviewer with two columns? I know it is Yes
> but i mean here where both columns have same structure. Assume you have
> an object 'car' with some properties that change over time. you have
> this data as versions and want to fill a tree with it so that every
> column (along with its children) represents one time stamp. The
> intention here is to make kind of line-to-line comparison.
> I couldn't adapt the classes implementing Contentprovider and
> StyledCellLabelProvider to get this done.

I don't understand the request. Have you added TreeViewerColumn's?

HTH & Greetings from Bremen,

Daniel Krügler
Re: jface treeviewer with 2 columns [message #1016092 is a reply to message #1015941] Mon, 04 March 2013 22:55 Go to previous message
Mokhtar Alshubei is currently offline Mokhtar AlshubeiFriend
Messages: 121
Registered: November 2011
Location: Germany
Senior Member
Yes I added treeviewercolumns. Ok, consider this tutorial please
http://javawiki.sowas.com/doku.php?id=swt-jface:treetableviewer
The intetion in this demo is to have 3 columns (Land/Stadt, Person and Sex). Now I want to pass data of two (Städte in this case along with its persons,..etc) and display it in 6 columns (3 for first Stadt and 3 for second). Look at the picture plz.

Image:http://s14.directupload.net/file/d/3184/tqhq96br_jpg.htm

I couldn't adapt the methods
getElements(Object cities)
,
getChildren(Object parentElement)
to get this done.

Regards from Bonn,
Mok
Previous Topic:How to add a listener to 'Next'Button of JFACEe Wizard Page?
Next Topic:ControlContribution Does not fire MouseTrackListener
Goto Forum:
  


Current Time: Fri Apr 19 09:29:09 GMT 2024

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

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

Back to the top