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

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