Time for action – inspecting and watching variables

Finally, it's worth seeing what the Variables view can do.

  1. Create a breakpoint at the start of the execute method.
  2. Click on the hello world icon again.
  3. Highlight the openInformation call and navigate to Run | Step Into Selection.
  4. Select the title variable in the the Variables view.
  5. Modify where it says Hello in the bottom half of the variables view and change it to Goodbye:
    Time for action – inspecting and watching variables
  6. Save the value with Ctrl + S (or Cmd + S on macOS).
  7. Click on resume, and the newly updated title can be seen in the dialog.
  8. Click on the hello world icon again.
  9. With the debugger stopped in the execute method, highlight the event in ...

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.