Community
Participate
Working Groups
I20061212-0010 In 3.3M4 you've changed the visibility of the two methods from public to default. Please make it public again or provide some other way to access the label provider of a given cell. Usecase is the same as yours in ToolTipSupport#shouldCreateToolTip line 59 and 66. I've written my own ToolTip (showing a Browser) and want to set the browsers content with the tool tip text provided by the CellLableProvider. Thanks
1. Couldn't you remember yourself the CellLabelProviders you've been setting or do you use the old API for setting LabelProviders? 2. Would it help if we would provide: CellLabelProvider#createToolTipArea(Event,Composite) which we would consult in ToolTipSupport#createToolTipContentArea() to provide completely customized ToolTips? But this also implies that you use the new API. The second one would be the cleanest solution from my point of view because it takes track of column reordering, disposing, ... . Beside that I don't have any problem to bring back ViewerColumn#getLabelProvider(). With ColumnViewer#getViewerColumn() i have the issue that its return type varies between Viewers with no column and those with at least one column.
(In reply to comment #1) > 1. Couldn't you remember yourself the CellLabelProviders you've been setting > or do you use the old API for setting LabelProviders? Yes, I could remember the label providers, but it wouldn't be my first choice to do so. > 2. Would it help if we would provide: > CellLabelProvider#createToolTipArea(Event,Composite) which we would consult > in ToolTipSupport#createToolTipContentArea() to provide completely > customized > ToolTips? But this also implies that you use the new API. No, I want to implement the browser tooltip and clients can provide CellLabelProviders which provide tool tip text (as html). I don't want to allow clients to implement there own tool tip control. Besides this I think a label provider should be as simple as possible. > The second one would be the cleanest solution from my point of view because it > takes track of column reordering, disposing, ... . Beside that I don't have any > problem to bring back ViewerColumn#getLabelProvider(). > With ColumnViewer#getViewerColumn() i have the issue that its return type > varies between Viewers with no column and those with at least one column. What about ColumnViewer#getLabelProvider(int column) then?
Sorry, I was logged in as Martin... Vista Testing... Just to clarify: I've made comment #2
(In reply to comment #2) > What about ColumnViewer#getLabelProvider(int column) then? This may work.
Yes I'm fine with that too.
Created attachment 55597 [details] Bring the new API to ColumnViewer
Released >20070204.
Thanks a lot!