Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsIssues about LabelProvider and TreeViewer
https://www.eclipse.org/forums/index.php/mv/msg/190236/603441/#msg_603441
Firts of all, thanks for you help. I talk you about my problem:
I'm developing a plug-in to parser a file and view the results as a tree, using a TreeViewer. For each leaf, I use a LabelProvider with a text and icon. I have a class that extends LabelProvider and here, I've implemented methods getText() and getImage(). I see, the icon is always in the first position and then the text. Is there any way to change that? I'd like to put the text first and icon, next.
If that is not possible, is there any other way to paint a tree, putting text and icon? Using another class instead of TreeViewer? I hope I've explained well.
Your comments will be well received.
Thank you very much.]]>Javier 2009-11-20T08:35:11-00:00Re: Issues about LabelProvider and TreeViewer
https://www.eclipse.org/forums/index.php/mv/msg/190236/603857/#msg_603857
a possible solution would be painting by yourself. You should be able to
implement it analog the table example (following the link).
Javier wrote:
> Hi Folks:
>
> Firts of all, thanks for you help. I talk you about my problem:
>
> I'm developing a plug-in to parser a file and view the results as a
> tree, using a TreeViewer. For each leaf, I use a LabelProvider with a
> text and icon. I have a class that extends LabelProvider and here, I've
> implemented methods getText() and getImage(). I see, the icon is always
> in the first position and then the text. Is there any way to change
> that? I'd like to put the text first and icon, next.
>
> If that is not possible, is there any other way to paint a tree, putting
> text and icon? Using another class instead of TreeViewer? I hope I've
> explained well.
>
> Your comments will be well received.
>
> Thank you very much.]]>2009-12-23T17:21:34-00:00