public abstract class AbstractScanHandler extends AbstractHandler {
@Override
public Object execute(ExecutionEvent event) throws ExecutionException {
final ScanAlertView scanAlertView = getScanAlertView(event);
if(scanAlertView == null) {
return null;
}
final IScan scan = scanAlertView.getSelection();
if(scan != null) {
runCommand(event, scan);
}
return null;
}