[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.platform] using a hyperlink with a Table/TableViewer/TreeViewer - options and performance
|
- From: Francis Upton <francisu@xxxxxxxx>
- Date: Mon, 04 Dec 2006 21:31:08 -0800
- Newsgroups: eclipse.platform
- Organization: EclipseCorner
- User-agent: Thunderbird 1.5.0.8 (X11/20061025)
I'm writing a search facility for my product. When searching, it's
possible for hundreds of results to be returned. Each result is shown
as a table row with up to 3 links in it (to various levels of the
hierarchy representing the result). The table is shown through a dialog
of a few rows.
Previously this all worked fine (except without the hyperlinks) by
having a TableViewer. The scrolling and resizing was fast, even if
there were thousands of results.
Now I'm trying to add the links. I see the following options:
1) Using a plain Table with a TableEditor (which refers to a Link
control). This worked reasonably well, except for performance. It's
unusable with more than a small number of rows. There is also this bug:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=166720
So this option won't work (unless I'm doing it wrong or there is another
way to do it).
2) TableViewer - I don't think it's possible to have an arbitrary
control for rendering a table cell in use with a TableViewer unless I
subclass it. Creating a CellEditor does no good, as this replaces the
control only when the cell is edited.
My next step is to consider subclassing TableViewer and having it use a
TableEditor referring to a Link, however, I'm concerned I will run into
the same issues I have with option 1.
3) Use a TreeViewer. The search results can be represented as a tree,
where each node then has only one link in it. I have not looked into
this, but I would assume I will have to subclass TreeViewer as in option
2 to have it render a Link.
Are there other options? Am I missing something obvious?
TIA,
Francis