Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Tree and TreeColumn help
Tree and TreeColumn help [message #458804] Thu, 21 July 2005 16:55 Go to next message
James Norris is currently offline James NorrisFriend
Messages: 52
Registered: July 2009
Member
I'm having problems using a Tree with TreeColumn's, particularly with how to
add items using the content and label providers for the treeviewer. If
anyone can give me a short snippet on how to do this or point me to an
example of how it is used in place of the TableTree, I'd greatly appreciate
it. I've Googled and searched the news groups but have not found anything
useful.

Thanks...
Re: Tree and TreeColumn help [message #458886 is a reply to message #458804] Mon, 25 July 2005 15:25 Go to previous messageGo to next message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2150
Registered: July 2009
Senior Member
James, if you don't get an answer here then you should ask this on the
eclipse.platform newsgroup, since that is where jface (which defines the
TreeViewer and all associated types) lives.

Grant

"jnorris" <james.norris@pb.com> wrote in message
news:dbok2a$3br$1@news.eclipse.org...
> I'm having problems using a Tree with TreeColumn's, particularly with how
to
> add items using the content and label providers for the treeviewer. If
> anyone can give me a short snippet on how to do this or point me to an
> example of how it is used in place of the TableTree, I'd greatly
appreciate
> it. I've Googled and searched the news groups but have not found anything
> useful.
>
> Thanks...
>
>
Re: Tree and TreeColumn help [message #458890 is a reply to message #458886] Mon, 25 July 2005 16:05 Go to previous messageGo to next message
Kalman Hazins is currently offline Kalman HazinsFriend
Messages: 76
Registered: July 2009
Member
Your label provider needs to implement ITableLabelProvider and the
contentprovider is the same as any other content provider.

HTH,
- Kalman


"Grant Gayed" <grant_gayed@ca.ibm.com> wrote in message
news:dc308t$k9f$1@news.eclipse.org...
> James, if you don't get an answer here then you should ask this on the
> eclipse.platform newsgroup, since that is where jface (which defines the
> TreeViewer and all associated types) lives.
>
> Grant
>
> "jnorris" <james.norris@pb.com> wrote in message
> news:dbok2a$3br$1@news.eclipse.org...
>> I'm having problems using a Tree with TreeColumn's, particularly with how
> to
>> add items using the content and label providers for the treeviewer. If
>> anyone can give me a short snippet on how to do this or point me to an
>> example of how it is used in place of the TableTree, I'd greatly
> appreciate
>> it. I've Googled and searched the news groups but have not found
>> anything
>> useful.
>>
>> Thanks...
>>
>>
>
>
Re: Tree and TreeColumn help [message #459023 is a reply to message #458890] Thu, 28 July 2005 16:36 Go to previous message
James Norris is currently offline James NorrisFriend
Messages: 52
Registered: July 2009
Member
Thanks for the replys. I used the deprecated TableTree before and have
implemented ITableLabelProvider and a content provider. Just can't seem to
get the model to provide the data right yet but I have some other priorities
at the moment.

Jim

"Kalman" <kalman@zikal.com> wrote in message
news:dc322r$mce$1@news.eclipse.org...
> Your label provider needs to implement ITableLabelProvider and the
> contentprovider is the same as any other content provider.
>
> HTH,
> - Kalman
>
>
> "Grant Gayed" <grant_gayed@ca.ibm.com> wrote in message
> news:dc308t$k9f$1@news.eclipse.org...
>> James, if you don't get an answer here then you should ask this on the
>> eclipse.platform newsgroup, since that is where jface (which defines the
>> TreeViewer and all associated types) lives.
>>
>> Grant
>>
>> "jnorris" <james.norris@pb.com> wrote in message
>> news:dbok2a$3br$1@news.eclipse.org...
>>> I'm having problems using a Tree with TreeColumn's, particularly with
>>> how
>> to
>>> add items using the content and label providers for the treeviewer. If
>>> anyone can give me a short snippet on how to do this or point me to an
>>> example of how it is used in place of the TableTree, I'd greatly
>> appreciate
>>> it. I've Googled and searched the news groups but have not found
>>> anything
>>> useful.
>>>
>>> Thanks...
>>>
>>>
>>
>>
>
>
Previous Topic:Newbie question for developing with SWT
Next Topic:Squiggle text
Goto Forum:
  


Current Time: Sat Oct 31 08:17:27 GMT 2020

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

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

Back to the top