Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JFace » Tree View And Table View
Tree View And Table View [message #468364] Wed, 05 August 2009 09:43 Go to next message
Kap Pak is currently offline Kap PakFriend
Messages: 52
Registered: July 2009
Member
Hello Guys,

I want to know if it's possible to use the same content and label
providers for Tree and Table in Eclipse views or they must have separate
content and label providers. I am trying to use the content and label
providers i wrote for the tree for the table as well but i see nothing on
the table view.

Thanks.
Re: Tree View And Table View [message #468366 is a reply to message #468364] Wed, 05 August 2009 09:57 Go to previous messageGo to next message
Thomas Schindl is currently offline Thomas SchindlFriend
Messages: 6651
Registered: July 2009
Senior Member
Yes you can reuse them.
Eddy Freeman schrieb:
>
> Hello Guys,
>
> I want to know if it's possible to use the same content and label
> providers for Tree and Table in Eclipse views or they must have separate
> content and label providers. I am trying to use the content and label
> providers i wrote for the tree for the table as well but i see nothing
> on the table view.
>
> Thanks.
>
>
Re: Tree View And Table View [message #468381 is a reply to message #468364] Wed, 05 August 2009 10:39 Go to previous message
Andrey Dulub is currently offline Andrey DulubFriend
Messages: 54
Registered: July 2009
Member
Use something like this



public class MyCustomProvider extends LabelProvider implements
ITreeContentProvider, ITableLabelProvider



Its universal form that acceptable for both TreeViewer and TableViewer.



Thanks,

Andrey Dulub



"Eddy Freeman" <win1for@yahoo.com> wrote in message
news:058de5f7a4254147de527a281a45edb9$1@www.eclipse.org...
>
> Hello Guys,
>
> I want to know if it's possible to use the same content and label
> providers for Tree and Table in Eclipse views or they must have separate
> content and label providers. I am trying to use the content and label
> providers i wrote for the tree for the table as well but i see nothing on
> the table view.
>
> Thanks.
>
>
Previous Topic:UI latencies with many objects in navigatorContent
Next Topic:TableViewer automatic width
Goto Forum:
  


Current Time: Thu Apr 25 07:42:40 GMT 2024

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

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

Back to the top