Summary

This chapter covered how to use JFace to build viewers for structured data: both tree-based views (with a TreeViewer) and table based views (with a TableViewer). It also covered some JFace built-in features for managing fonts and images.

To synchronize data between views in Eclipse, services such as the ISelectionService are used (or in E4, the ESelectionService). Having views generate and consume selection events provides a visual consistency even though the views may be exposed by different plug-ins. The next chapter will look at how to interact with the user, with menus, commands and handlers.

Get Eclipse Plug-in Development Beginner's Guide - Second 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.