O'Reilly logo

Contributing to Eclipse: Principles, Patterns, and Plug-Ins by Kent Beck, Erich Gamma

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required