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);
}
Aggregations