@@ -71,8 +71,6 @@ public class MethodListTree extends Tree {
7171 private ResourceBundle resource ;
7272 public static boolean TREE_EXPANDED ;
7373
74- private static final NotificationGroup TOOL_GROUP = new NotificationGroup (Constants .PLUGIN_GROUP_DISPLAY_ID ,
75- NotificationDisplayType .TOOL_WINDOW , true );
7674
7775 /**
7876 * Initialises method list tree
@@ -377,8 +375,8 @@ public void launchSwan(HashMap<String, String> values) {
377375
378376 JSONFileLoader .setReloading (false );
379377
380- Notification analysisCompleted = TOOL_GROUP . createNotification ( "" , " SRM List updated", NotificationType . INFORMATION ) ;
381- Notifications . Bus . notify ( analysisCompleted , project );
378+ String notificationContent = " SRM List updated" ;
379+ NotificationGroupManager . getInstance (). getNotificationGroup ( "Process_Completed" ). createNotification ( notificationContent , NotificationType . INFORMATION ). notify ( project );
382380
383381 ConfigurationFileNotifier fileNotifier = bus .syncPublisher (ConfigurationFileNotifier .FILE_NOTIFIER_TOPIC );
384382 fileNotifier .loadUpdatedFile (values .get (Constants .OUTPUT_FILE ));
@@ -389,10 +387,8 @@ public void launchSwan(HashMap<String, String> values) {
389387 bus .connect ().subscribe (SecucheckNotifier .END_SECUCHECK_PROCESS_TOPIC , new SecucheckNotifier () {
390388 @ Override
391389 public void launchSecuCheck () {
392- Notification analysisCompleted = TOOL_GROUP .createNotification ("" ,
393- "SecuCheck results exported to " +PropertiesComponent .getInstance (project ).getValue (Constants .OUTPUT_DIRECTORY ),
394- NotificationType .INFORMATION );
395- Notifications .Bus .notify (analysisCompleted , project );
390+ String notificationContent = "SecuCheck results exported to " +PropertiesComponent .getInstance (project ).getValue (Constants .OUTPUT_DIRECTORY );
391+ NotificationGroupManager .getInstance ().getNotificationGroup ("Process_Completed" ).createNotification (notificationContent , NotificationType .INFORMATION ).notify (project );
396392 }
397393 });
398394
0 commit comments