use of net.sourceforge.pmd.eclipse.runtime.cmd.DeleteMarkersCommand in project pmd-eclipse-plugin by pmd.
the class ViolationOverview method deleteMarkers.
private void deleteMarkers(IMarker[] markers) {
if (markers.length > 0) {
DeleteMarkersCommand cmd = new DeleteMarkersCommand();
cmd.setMarkers(markers);
try {
cmd.performExecute();
} catch (CommandException e) {
PMDPlugin.getDefault().showError(getString(StringKeys.ERROR_CORE_EXCEPTION), e.getCause());
}
}
}
Aggregations