[jface] Programmatic cell iteration in ColumnViewers [message #527137] |
Wed, 14 April 2010 04:29  |
Eclipse User |
|
|
|
I would like to ask, whether there exists already official
API for the following use-case: It seems that the complete
column-iteration code (acting on ViewerCell, ViewerColumn,
and ViewerRow) is more or less internal code, even though
the classes themselves are public. Now using column viewers
an often occurring use-case is that tables need to be
exported to clipboard or to Excel or similar programmatic
code that would require a row-by-row and column-by-column
traversal through the visual column data (therefore the
code cannot perform this traversal on the actual model data).
How can this be done in a most efficient way? AFAIK
the CellNavigationStrategy cannot be used for this, and
even though it is possible to reach neighbor cells from
a given ViewerCell there seems to be no way to get the
"first" ViewerCell (e.g. the most upper on the left side).
I would appreciate any ideas or hints.
Thanks and Greetings from Bremen,
Daniel Krügler
|
|
|
|
Re: [jface] Programmatic cell iteration in ColumnViewers [message #527150 is a reply to message #527142] |
Wed, 14 April 2010 05:09  |
Eclipse User |
|
|
|
On 14.04.2010 10:51, Tom Schindl wrote:
> In our software I simply walk through the underlying Table-Control and
> call item.getText(int); and copy this information to clipboard.
>
Thanks for your quick reply, Tom.
I need the complete object here (like the CellLabelProvider),
but this could be considered by working on the data access of
the item. I hoped for an already existing higher level API which
could work on all ColumnViewer (which don't necessarily have a
Table control), but your description implies that there is no
such API. This makes me wonder, because the ViewerCell/ViewerRow
/ViewerColumn classes seem to allow for exactly this kind
of traversal, except that I have to good point to start it.
It seems that I have to define this higher-level-support
on my own. If you have any suggestions how this could be
combined with above mentioned Viewer* classes, I would
appreciate any of your - as usual - valuable ideas.
Thanks,
Daniel
|
|
|
Powered by
FUDForum. Page generated in 0.06950 seconds