A dialog is too intrusive to use as an interface for displaying test results. Over time we'd like to integrate the tests more thoroughly into the flow of programming, much as the compiler has gone from being a separate tool to becoming air—something vital that's always around. A step in the right direction is to display test results in a view. If we run a test successfully, the view should turn green. If a test fails, the view should turn red.
In this chapter we'll see
How to add a view extension
How to put a widget in a view
How to change the widget's color based on the updates it receives
We want to add a view that will change colors based on the results of running tests. The views in Eclipse live in ...