package Ġnet . accel f . intellij . gm usic . listeners Ċ Ċ import Ġcom . intellij . ide . App Lifecycle Listener Ċ import Ġcom . intellij . openapi . components . Service Manager Ċ import Ġcom . intellij . openapi . project . Project Ċ import Ġnet . accel f . intellij . gm usic . services . App Service Ċ import Ġnet . accel f . intellij . gm usic . services . Settings State Ċ Ċ internal Ġclass ĠApp Listener Ġ: ĠApp Lifecycle Listener Ġ{ ĊĊĠĠĠ Ġoverride Ġfun Ġapp Starting ( project From CommandLine : ĠProject ?) Ġ{ ĊĠĠĠĠĠĠĠ Ġval Ġapp Service Ġ= ĠService Manager . getService ( App Service :: class . java ) ĊĠĠĠĠĠĠĠ Ġval Ġsettings State Ġ= ĠSettings State . getInstance () ĊĊĠĠĠĠĠĠĠ Ġapp Service . set Ws Client ( settings State ) ĊĊĠĠĠĠĠĠĠ Ġsettings State . reconnect Event ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ. subscribe Ġ{ ĊĠĠĠĠĠĠĠĠĠĠĠĠĠĠĠ Ġapp Service . set Ws Client ( settings State ) ĊĠĠĠĠĠĠĠĠĠĠĠ Ġ} ĊĠĠĠ Ġ} Ċ } Ċ