上QQ阅读APP看书,第一时间看更新
Chapter 4. Interacting with the User
In the last chapter, we looked at some of the basic JFace viewers that provide a representation of data. However, we need to interact with the user and we can do this in multiple ways, from responding to mouse clicks to processing data-intensive operations in the background.
In this chapter we will:
- Create a menu in response to a user popup
- Add a command and a handler in a menu
- Use progress managers to report work
- Add commands to the progress manager
- Show errors and deal with failure