Search in sources :

Example 1 with IMarkerResolutionGenerator2

use of org.eclipse.ui.IMarkerResolutionGenerator2 in project xtext-eclipse by eclipse.

the class AbstractQuickfixTest method applyQuickfixOnSingleMarkers.

protected void applyQuickfixOnSingleMarkers(IMarker marker) {
    IMarkerResolutionGenerator2 generator = getInjector().getInstance(MarkerResolutionGenerator.class);
    IMarkerResolution[] resolutions = generator.getResolutions(marker);
    Assert.assertEquals(1, resolutions.length);
    IMarkerResolution resolution = resolutions[0];
    resolution.run(marker);
}
Also used : IMarkerResolution(org.eclipse.ui.IMarkerResolution) IMarkerResolutionGenerator2(org.eclipse.ui.IMarkerResolutionGenerator2)

Aggregations

IMarkerResolution (org.eclipse.ui.IMarkerResolution)1 IMarkerResolutionGenerator2 (org.eclipse.ui.IMarkerResolutionGenerator2)1