Chapter 22. Marker Resolution — Invoking a Long-Running Operation

We have a left over TODO from Chapter 16. We still need to implement the Rerun Marker Resolution:

Example . org.eclipse.contribution.junit/RerunMarkerResolutionGenerator

public IMarkerResolution [] getResolutions(IMarker marker)  {
    IMarkerResolution resolution= new IMarkerResolution() {
     public String getLabel() {
       return "Re-run test";
     public void run(IMarker marker) {
       // TODO implement this
       System.out.println("not implemented yet");
    return new IMarkerResolution[]  {resolution};

The purpose of the marker resolution is to give the user a quick way to fix, or at least investigate, the problem represented by the marker. We would like to quickly rerun a failed test, perhaps after ...

Get Contributing to Eclipse: Principles, Patterns, and Plug-Ins now with the O’Reilly learning platform.

O’Reilly members experience live online training, plus books, videos, and digital content from nearly 200 publishers.