package Ġcom . jetbrains . edu . learning . step ik . hyper skill . actions Ċ Ċ import Ġcom . intellij . openapi . action System . An ActionEvent Ċ import Ġcom . jetbrains . edu . learning . E du Utils Ċ import Ġcom . jetbrains . edu . learning . E du Utils Kt . show Popup Ċ import Ġcom . jetbrains . edu . learning . course Format . Check Status Ċ import Ġcom . jetbrains . edu . learning . course Format . Check Status . Failed Ċ import Ġcom . jetbrains . edu . learning . course Format . tasks . data . Data Task Ċ import Ġcom . jetbrains . edu . learning . messages . E du Core Bundle Ċ import Ġcom . jetbrains . edu . learning . yaml . Yaml Format Synchron izer Ċ import Ġorg . jetbrains . annotations . Non N ls Ċ Ċ class ĠRetry Data Task Action Ġ: ĠDownload Dataset Action Base ( E du Core Bundle . lazy Message (" retry "), ĠPROCESS _ MESSAGE , ĠFailed ) Ġ{ ĊĊĠ Ġoverride Ġfun ĠactionPerformed ( e : ĠAn ActionEvent ) Ġ{ ĊĠĠĠ Ġval Ġproject Ġ= Ġe . project Ġ?: Ġreturn ĊĠĠĠ Ġval Ġtask Ġ= ĠE du Utils . getCurrent Task ( project ) Ġas ? ĠData Task Ġ?: Ġreturn ĊĠĠĠ Ġtask . attempt Ġ= Ġnull ĊĠĠĠ Ġtask . status Ġ= ĠCheck Status . Unchecked ĊĠĠĠ ĠYaml Format Synchron izer . save Item With Remote Info ( task ) ĊĊĠĠĠ Ġif Ġ(! check Authorized ( project )) Ġreturn ĊĊĠĠĠ Ġif Ġ(! Download Dataset . lock ( project )) Ġ{ ĊĠĠĠĠĠ Ġe . data Context . show Popup ( E du Core Bundle . message (" hyper skill . download . dataset . already . running ")) ĊĠĠĠĠĠ Ġreturn ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġdownload Dataset In Background ( project , Ġtask , Ġtrue ) ĊĠ Ġ} ĊĊĠ Ġcompanion Ġobject Ġ{ ĊĠĠĠ Ġ@ Non N ls ĊĠĠĠ Ġconst Ġval ĠACTION _ ID : ĠString Ġ= Ġ" Hyper skill . Retry Data Task " ĊĊĠĠĠ Ġ@ Non N ls ĊĠĠĠ Ġprivate Ġconst Ġval ĠPROCESS _ MESSAGE : ĠString Ġ= Ġ" Retry Ġdata Ġtask Ġin Ġprogress " ĊĠ Ġ} Ċ }