SWT Tree: draw line from label to the right side
I'm working on a similar开发者_运维百科 application like the figure in this question: SWT tree > move the verticle scrollbar to the left of the tree without changing the orientation I don't know how to draw the connection lines like the figure. My naive solution is that I add a lot of "-" to the label and it ends up like this picture: http://i.imgur.com/hCLGL.png!
Moreover, I want to add the dotted line to indicate the child-parent relationship. Here is a similar question http://www.eclipsezone.com/eclipse/forums/t82430.html but with no solution.
Here is a solution to the above question: http://www.eclipse.org/articles/article.php?file=Article-CustomDrawingTableAndTreeItems/index.html
精彩评论