Skip to main content



      Home
Home » Eclipse Projects » Rich Client Platform (RCP) » Decorations on filtered items in a tree
Decorations on filtered items in a tree [message #459622] Mon, 04 December 2006 23:15 Go to next message
Eclipse UserFriend
Originally posted by: das.andrew.gmail.com

Hi all,
I am trying to highlight filtered items (selected from a dialog) in a tree
viewer. If I use the DecoratingLabelProvider it applies the decoration to
all the entries. How can I best apply the decorations selectively? Is this
an in-built feature within the Eclipse API's or does one have to do manual
work to make this happen. Any pointers in the right direction would be
highly appreciated?

Thanks
Re: Decorations on filtered items in a tree [message #459864 is a reply to message #459622] Thu, 07 December 2006 18:31 Go to previous message
Eclipse UserFriend
So I have never tried this before so I maybe totally off the mark...

Make your dialog that holds the list of selected objects pass that list
of selected objects to your subclass of DecoratingLabelProvider.

If the object is in the list of selected objects then provide the
decorating label, if not, don't decorate. Set the
customdecoratingLabelProvider on the TreeViewer.

Hope that helps,

Nik



AD wrote:
> Hi all,
> I am trying to highlight filtered items (selected from a dialog) in a tree
> viewer. If I use the DecoratingLabelProvider it applies the decoration to
> all the entries. How can I best apply the decorations selectively? Is this
> an in-built feature within the Eclipse API's or does one have to do manual
> work to make this happen. Any pointers in the right direction would be
> highly appreciated?
>
> Thanks
>
>
Previous Topic:export rcp error, please help - Eclipse 3.2.1
Next Topic:Problem with refreshing an OutlinePage
Goto Forum:
  


Current Time: Fri Mar 21 17:42:36 EDT 2025

Powered by FUDForum. Page generated in 0.03249 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top