public void cancelDownload ( final boolean hideWindowImmediately ) { logger . info ( "Cancel of download requested" ) ; _cancelled = true ; if ( hideWindowImmediately && _downloadProgressWindow != null ) { WidgetUtils . invokeSwingAction ( _downloadProgressWindow :: close ) ; } }
Cancels the file download .