Chapter 24. A Simple Editor to Exclude Tests

Auto-test runs all tests it finds inside a project. This is simple, but sometimes a user may want some control over the tests to be executed. In this chapter we will add support for excluding test cases from an auto-test run. We will implement a simple editor to define test cases that should be excluded. Editors are similar to views, but different enough to deserve a chapter of their own. We will see how to

  • Contribute an editor

  • Contribute an action to an editor

To support the exclusion feature, we need to permanently store a list of test cases associated with a project. Let's consider the different options Eclipse offers us to store state:

  • Preferences—Each plug-in has a preferences store accessed with ...

Get Contributing to Eclipse: Principles, Patterns, and Plug-Ins 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.