Search in sources :

Example 1 with DeleteMarkersCommand

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());
        }
    }
}
Also used : DeleteMarkersCommand(net.sourceforge.pmd.eclipse.runtime.cmd.DeleteMarkersCommand) CommandException(name.herlin.command.CommandException)

Aggregations

CommandException (name.herlin.command.CommandException)1 DeleteMarkersCommand (net.sourceforge.pmd.eclipse.runtime.cmd.DeleteMarkersCommand)1