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

Creating menus, commands, and handlers

In Eclipse, menus can be used to trigger user actions. These menus can be displayed at the top of the application window (or top of the screen on macOS). Menus can also be associated with a view ...

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.