Bug 95567 - [Decorators] Create a table column decorator
Summary: [Decorators] Create a table column decorator
Status: RESOLVED INVALID
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P4 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: needinfo
Depends on:
Blocks:
 
Reported: 2005-05-17 11:00 EDT by Latoya CLA
Modified: 2009-08-30 02:10 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Latoya CLA 2005-05-17 11:00:49 EDT
I tried implementing decorators on the SWT Table widget with directions from 
eclipse help. Here's an example implemention:

public class MyLabelProvider extends LabelProvider implements 
ITableLabelProvider

I found that only the items in the first table column were decorated while the 
other table columns were left blank. Other viewers such as the TreeViewer 
decorate all the tree items instead of just the first one so there seems to be 
an inconsistency in having decorators work for all viewers. 

This problem blocks our product from having tables display decorators in other 
columns besides the first column. This is critical since tables and trees are 
used many times to display the same type of data that need to use decorators. 

I have a to fix this problem by subclassing the 
org.eclipse.jface.viewers.TableViewer class, but eclipse documentation states 
that this class should not be subclassed.
Comment 1 Tod Creasey CLA 2005-06-06 15:08:01 EDT
We don't currently support decorators for columns. You can do this in your
ITableLabelProvider without using the decorator mechanism.
Comment 2 Latoya CLA 2005-06-08 09:40:36 EDT
Hi Tod, thanks for investigating this,

(In reply to comment #1)
> We don't currently support decorators for columns.

Is there a specific reason why columns are not supported? Also, could it be 
documented in the eclipse decorator info that columns are not supported.
 
>You can do this in your ITableLabelProvider without using the decorator 
>mechanism.

I'm not sure I understand, are you saying I can decorate without using the 
decorator mechanism?
Comment 3 Tod Creasey CLA 2005-06-08 09:51:28 EDT
Mostly that decorators work on decorating an object not a property of the object
(which is generally how people use tables - one object per row).

I was suggesting that you make your ITableLabelProvider handle the changes to
any icons or text you want to make. Recall that a decorator affects every viewer
that shows a type. If we made tables support it it wouldn't be clear which row
we wanted to modify. Right now it is consistent with other viewers.
Comment 4 Tod Creasey CLA 2006-04-07 13:04:00 EDT
There is no plan to work on this feature
Comment 5 Denis Roy CLA 2009-08-30 02:10:23 EDT
As of now 'LATER' and 'REMIND' resolutions are no longer supported.
Please reopen this bug if it is still valid for you.