[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.platform] Re: using a hyperlink with a Table/TableViewer/TreeViewer - options and performance
|
Francis Upton schrieb:
> Thanks Tom, I was thinking along the lines you suggested. I will make a
> link by changing the color and drawing a line using owner draw.
>
> I decided to handle the clicking by just responding to the selection
> event on the TableViewer (thus allowing keyboard selection).
>
Well but if you have 3 different links in one line where from you know
which of the links has been clicker?
And once more in 3.3 we will add API for the Keyboard Navigation and
CellSelections using the API mentionned in bug 151377. I expect to have
the whole stuff integrate in M5
(https://bugs.eclipse.org/bugs/show_bug.cgi?id=151295).
> It would be nice if there was a simpler way to include links using the
> Viewers, since the TableEditor solution is so impractical.
>
> Thanks again for your help!
The problem with Links and other Widgets is that as you discovered the
performance impact for big tables is very high.
The corresponding feature request is:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=36977
To solve the performance impact we need to provide some logic to only
keep the widgets who are visible. If you want a Table holding native
widgets I can point you to the nebula project which provides a control
called CompositeTable which works with native widgets and has the great
advantage that it holds the logic to only create/hold as many widgets it
needs to fill the table area. I think you need to check it out from the
CVS-Repository.
Tom