Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community ForumsIs there a way to remove the blank tree icon inserted when other tree nodes have an icon?
https://www.eclipse.org/forums/index.php/mv/msg/174477/555712/#msg_555712
using no icons (so that the label text is as close as possible to the tree
expand icon) and the nodes at level 3 using icons. Does anyone know if this
is possible? Thanks.]]>Tony2010-08-27T18:41:22-00:00Re: Is there a way to remove the blank tree icon inserted when other tree nodes have an icon?
https://www.eclipse.org/forums/index.php/mv/msg/174477/555947/#msg_555947
You can do this using custom drawing. You can draw the image and the text for the TreeItems at level 3 in the PaintItem Listener (instead of setting the image to the TreeItem). And use EraseItem Listener to prevent the default text drawing.
Please see the example snippets on how to use the PaintItem and EraseItem Listener -- Snippet220 Snippet227
Also useful - Article on Custom drawing Tree and TableItems ]]>Lakshmi P Shanmugam2010-08-30T11:07:23-00:00Re: Is there a way to remove the blank tree icon inserted when other tree nodes have an icon?
https://www.eclipse.org/forums/index.php/mv/msg/174477/557083/#msg_557083
Tony2010-09-04T04:51:24-00:00