上QQ阅读APP看书,第一时间看更新
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.