tableTreeViewer.reveal & Decorators [message #567988] |
Wed, 01 November 2006 22:55 |
Cal Messages: 70 Registered: July 2009 |
Member |
|
|
Hi
None of these items are critical (well maybe the decorators):
I have a use case to search the CTableTree. When any item in the "found"
list is selected, the tree sends focus to that item. I was initially using
the CTableTree.reveal(), it will do what I want if the item is painted. I
added the code from the CTableTree.handleMouseEvents(..) that handles tree
expansion to recursively open the parent nodes (up to first opened parent
or null) then select the node. I wanted to know if this is what reveal
should do or if the extra code is necessary. I checked the javadocs for
TreeViewer but its not clear if a non-painted node gets expanded with
reveal()...
2nd. Decorators..I'm using an DecoratingLabelProvider for my ctabletree
labelProvider, it interfaces with an ILabelProvider. I've stepped through
the code for decorating the image and the overlay image is drawn with no
errors reported but the image doesnt get decorated...this should work
correct?
And 3rd I guess...the selected-but-no-focus ForeGround color (if I click
over to the editor for example) for the item text is white, it should be
some contrasting color to the background.
Thanks
|
|
|
Powered by
FUDForum. Page generated in 0.03217 seconds