LabelProviders and Tree with columns [message #458680] |
Tue, 19 July 2005 08:03 |
Eclipse User |
|
|
|
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 #458729 is a reply to message #458700] |
Wed, 20 July 2005 07:03 |
Eclipse User |
|
|
|
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
|
|
|
Powered by
FUDForum. Page generated in 0.02630 seconds