Detecting ide closing

How can I add a listener so I get an event when ide is closing, not the project?

1

See `com.intellij.ide.AppLifecycleListener#appClosing`.

ex: `ApplicationManager.getApplication().getMessageBus().connect().subscribe(AppLifecycleListener.TOPIC, myListener)`

1
Avatar
Permanently deleted user

Thank you very much! That worked great

0

请先登录再写评论。