Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » LabelProviders and Tree with columns
LabelProviders and Tree with columns [message #458680] Tue, 19 July 2005 08:03 Go to next message
Eclipse UserFriend
Originally posted by: lanfranco.salinari.tiscalinet.it

Hello,
I am new to Eclipse and Java development, so probably I am posing a
trivial question, but I have read the very good articles by Adrian Emmenis
at http://www-128.ibm.com/developerworks/opensource/library/os- ecgui1/ and
I want to extend the project (a simple file explorer) using the new Tree
with columns introduced in 3.1.
However, I don't understand how to rewrite the class FileTreeLabelProvider
in this case to supply labels for every column. It seems I can't, since
the getText() function returns a single String.
Could someone please explain me whether it is possible to solve this
problem and how?
Thanks in advance,

Lanfranco
Re: LabelProviders and Tree with columns [message #458700 is a reply to message #458680] Tue, 19 July 2005 15:39 Go to previous messageGo to next message
Agnes Freese is currently offline Agnes FreeseFriend
Messages: 14
Registered: July 2009
Junior Member
I am not familiar with the FileTreeLabelProvider, but I have used the new
Tree in 3.1 within a TreeViewer. To get the right calls for columns in the
label provider, the label provider has to be subclassed from
ITableLabelProvider.

Agnes

"Lanfranco Salinari" <lanfranco.salinari@tiscalinet.it> wrote in message
news:281210865176d9300901c92766636d46$1@www.eclipse.org...
> Hello,
> I am new to Eclipse and Java development, so probably I am posing a
> trivial question, but I have read the very good articles by Adrian Emmenis
> at http://www-128.ibm.com/developerworks/opensource/library/os- ecgui1/ and
> I want to extend the project (a simple file explorer) using the new Tree
> with columns introduced in 3.1.
> However, I don't understand how to rewrite the class FileTreeLabelProvider
> in this case to supply labels for every column. It seems I can't, since
> the getText() function returns a single String.
> Could someone please explain me whether it is possible to solve this
> problem and how?
> Thanks in advance,
>
> Lanfranco
>
>
>
Re: LabelProviders and Tree with columns [message #458729 is a reply to message #458700] Wed, 20 July 2005 07:03 Go to previous message
Eclipse UserFriend
Originally posted by: lanfranco.salinari.tiscalinet.it

Agnes Freese wrote:

> I am not familiar with the FileTreeLabelProvider, but I have used the new
> Tree in 3.1 within a TreeViewer. To get the right calls for columns in the
> label provider, the label provider has to be subclassed from
> ITableLabelProvider.

> Agnes

Thank you very much for your answer, Agnes, I'll try to follow your hint.
Best regards,

Lanfranco
Previous Topic:MouseEvent in Java Editor
Next Topic:Widget is disposed!!!
Goto Forum:
  


Current Time: Fri Apr 26 05:51:56 GMT 2024

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

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

Back to the top