[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Newsgroup Home]
|
[news.eclipse.platform.swt] Re: TableViewer and CellLabelProviders
|
Could you please provide a snippet for me to test? I thought it works
just the way you describ it if there's not LabelProvider provider
attached to a Column the the JFace-Code ensures to generate one from the
label provider attached to the viewer.
All in all mixing the old and the new API is always a dangerous thing.
Tom
Sarah Ettritch schrieb:
I have a table viewer with ten columns. I'd like to provide cell tooltips
for two of those columns only. The rest don't require tooltips. I followed
the code in Snippet011CustomTooltips, but I wasn't seeing my tooltips. I
didn't noticed that a label provider hadn't been set on the table viewer in
the snippet. It appears that if a label provider is set on the viewer, any
column CellLabelProviders are ignored.
I had assumed that the viewer would use its label provider unless a
CellLabelProvider exists for a column, in which case it would use the
CellLabelProvider. Is there a way to make that happen, so I don't have to
set ten CellLabelProviders to get tooltips in two columns?
--
B e s t S o l u t i o n . at
--------------------------------------------------------------------
Tom Schindl JFace-Committer
--------------------------------------------------------------------