Skip to main content



      Home
Home » Eclipse Projects » Eclipse Platform » How to add a decorator to a tableviewer?
How to add a decorator to a tableviewer? [message #11982] Thu, 24 April 2003 12:16 Go to next message
Eclipse UserFriend
Originally posted by: not.not.com

Hi,

I am using the DecoratingLabelProvider for a treeviewer. However, how do i
attach label to a tableviewer containing a normal TableLabelProvider. The
problem is that the DecoratingLabelProvider constructor does not like the
TableLabelProvider as its first argument.

Any ideas?
Thanks
Re: How to add a decorator to a tableviewer? [message #13292 is a reply to message #11982] Thu, 24 April 2003 15:50 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: knut_radloff.oti.com

"A. V." <not@not.com> wrote in message news:b892ko$ak9$1@rogue.oti.com...
> Hi,
>
> I am using the DecoratingLabelProvider for a treeviewer. However, how do i
> attach label to a tableviewer containing a normal TableLabelProvider. The

What do you mean with "normal TableLabelProvider"? I don't think a TableLabelProvider is part of the platform. All that
DecoratingLabelProvider needs is something implementing ILabelProvider. Like WorkbenchLabelProvider.

Knut
Re: How to add a decorator to a tableviewer? [message #14021 is a reply to message #13292] Thu, 24 April 2003 16:11 Go to previous messageGo to next message
Eclipse UserFriend
Originally posted by: not.not.com

The ITableLabelProvider is part of the platform. That is what i am extending
for the TableViewer. However it is not related in any way to the
ILabelProvider therefore it seems i cannot use it for decoration.


"Knut Radloff" <knut_radloff@oti.com> wrote in message
news:b89f70$lpk$1@rogue.oti.com...
> "A. V." <not@not.com> wrote in message news:b892ko$ak9$1@rogue.oti.com...
> > Hi,
> >
> > I am using the DecoratingLabelProvider for a treeviewer. However, how do
i
> > attach label to a tableviewer containing a normal TableLabelProvider.
The
>
> What do you mean with "normal TableLabelProvider"? I don't think a
TableLabelProvider is part of the platform. All that
> DecoratingLabelProvider needs is something implementing ILabelProvider.
Like WorkbenchLabelProvider.
>
> Knut
>
>
Re: How to add a decorator to a tableviewer? [message #16426 is a reply to message #14021] Fri, 25 April 2003 14:20 Go to previous message
Eclipse UserFriend
Originally posted by: tod_creasey.oti.com

You can always mimic the behaviour of the DecoratingLabelProvider. Whenever
itgoes a get image or get text it gets the value from the label provider and
then decorates it using the decorator manager (see
WorkbenchPlugin.getDefault().getWorkbench().getDecoratorMana ger().getLabelDe
corator()).

Basically you will be creating a DecoratingTableLabelProvider which wraps
the regular label provider and then decorates the result.

Tod Creasey
Software Developer
Eclipse Team


"A. V." <not@not.com> wrote in message news:b89ge9$msv$1@rogue.oti.com...
> The ITableLabelProvider is part of the platform. That is what i am
extending
> for the TableViewer. However it is not related in any way to the
> ILabelProvider therefore it seems i cannot use it for decoration.
>
>
> "Knut Radloff" <knut_radloff@oti.com> wrote in message
> news:b89f70$lpk$1@rogue.oti.com...
> > "A. V." <not@not.com> wrote in message
news:b892ko$ak9$1@rogue.oti.com...
> > > Hi,
> > >
> > > I am using the DecoratingLabelProvider for a treeviewer. However, how
do
> i
> > > attach label to a tableviewer containing a normal TableLabelProvider.
> The
> >
> > What do you mean with "normal TableLabelProvider"? I don't think a
> TableLabelProvider is part of the platform. All that
> > DecoratingLabelProvider needs is something implementing ILabelProvider.
> Like WorkbenchLabelProvider.
> >
> > Knut
> >
> >
>
>
Previous Topic:COBOL project
Next Topic:Re: Is there a plugin to find/replace across projects/folders/etc.?
Goto Forum:
  


Current Time: Fri May 09 15:42:56 EDT 2025

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

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

Back to the top