|
|
|
Re: Databinding of a matrix model with a TableViewer [message #868822 is a reply to message #868773] |
Wed, 02 May 2012 11:33  |
Eclipse User |
|
|
|
Be aware of the many many observables you'll produce for 100x100 =>
10.000 observable instances!
See
http://tomsondev.bestsolution.at/2011/10/07/jface-viewer-and-eclipse-databinding-with-10-000-objects/
And SWT-Tables generally don't like many columns (not sure which number
is the cut off but IIRC win32 platform most affected).
Tom
Am 02.05.12 16:15, schrieb Max Hohenegger:
> Thanks for your reply Tom, the problem is fixed now.
>
> For future reference:
> I wanted to show and edit a column-based matrix model in a TableViewer
> using standard EMF databinding.
> So I created a row-based proxy-model that would work with the
> databinding, but wraps the column-based model. Whenever I access the
> values, e.g. in LabelProvider or EditingSupport, I would use the
> column-based model. This works because every row knows its index within
> the matrix and can then access the according entry within each column.
>
> The resulting code looks rather messy, which is why I would recommend
> everyone to use a row-based model if you have a choice. On the bright
> side it scales well up to at least a 100x100 matrix. :)
|
|
|
Powered by
FUDForum. Page generated in 0.10353 seconds