package Ġio . sn yk . plugin . ui . actions Ċ Ċ import Ġcom . intellij . icons . All Icons Ċ import Ġcom . intellij . openapi . action System . An Action Ċ import Ġcom . intellij . openapi . action System . An ActionEvent Ċ import Ġcom . intellij . openapi . components . service Ċ import Ġcom . intellij . openapi . project . D umb Aware Ċ import Ġio . sn yk . plugin . is Scan Running Ċ import Ġio . sn yk . plugin . services . S ny k Task Queue Service Ċ Ċ /** Ċ Ġ* ĠStop Ġscan Ġproject Ġwith ĠS ny k Ġaction . Ċ Ġ*/ Ċ class ĠS ny k Stop Scan Action Ġ: ĠAn Action ( All Icons . Actions . Suspend ), ĠD umb Aware Ġ{ ĊĊĠĠĠ Ġoverride Ġfun ĠactionPerformed ( action Event : ĠAn ActionEvent ) Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġtask Queue Service Ġ= Ġaction Event . project !!. service < S ny k Task Queue Service >() ĊĊĠĠĠĠĠĠĠ Ġtask Queue Service . stop Scan () ĊĠĠĠ Ġ} ĊĊĠĠĠ Ġoverride Ġfun Ġupdate ( action Event : ĠAn ActionEvent ) Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġproject Ġ= Ġaction Event . project ĊĠĠĠĠĠĠĠ Ġif Ġ( project Ġ!= Ġnull Ġ&& Ġ! project . is Disposed ) Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠ Ġaction Event . presentation . isEnabled Ġ= Ġis Scan Running ( project ) ĊĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ } Ċ