Modifications to tree rendering [message #1272639] |
Tue, 18 March 2014 11:40 |
Dirk Fauth Messages: 2902 Registered: July 2012 |
Senior Member |
|
|
Hi,
I'm currently taking the last steps to finish NatTable 1.1. On implementing theme styling I came across several issues regarding painters, making it hard to replace them easily without knowing several internal model informations, e.g. ITreeRowModel for the tree rendering or ColumnGroupModel for the column group rendering.
I changed the implementations to use the same label based mechanism than the SortHeaderTextPainter is using. So now the references to the internal model instances are not needed anymore.
I also checked backwards compatibility, and for the default implementations everything looks fine.
Only if you tried to override internal methods (e.g. TreeLayer.getCellPainter()) to get a more custom styling, the result might not be the same as before. Although it should not break anything.
Check
https://bugs.eclipse.org/bugs/show_bug.cgi?id=430519
https://bugs.eclipse.org/bugs/show_bug.cgi?id=428875
For some of the painter changes.
Greez,
Dirk
|
|
|
Powered by
FUDForum. Page generated in 0.03264 seconds