Chapter 5JFace Viewers
Although SWT provides a direct interface to the native platform widgets, it is limited to using simple data types—primarily strings, numbers, and images. This is fine for a large number of applications, but it represents a severe impedance mismatch when dealing with object-oriented (OO) data that needs to be presented in lists, tables, trees, and text widgets. This is where JFace viewers step in to provide OO wrappers around their associated SWT widgets.
5.1 List-Oriented Viewers
JFace list viewers, such as ListViewer
, TableViewer
, and TreeViewer
, allow you to directly use your domain model objects (e.g., business objects such as Company, Person, Department, etc.) without needing to manually decompose ...
Get Eclipse Plug-ins, Third Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.