There is a `com.intellij.ide.plugins.PluginInstaller#addStateListener` though it is not a part of Open API therefore it is not guaranteed that this method would not be changed in the future.
Is this still the recommended way to achieve this? I am trying to prompt users to provide some feedback if they uninstall the plugin and this is not working for me. My code looks like:
Hi Bernard,
There is a `com.intellij.ide.plugins.PluginInstaller#addStateListener` though it is not a part of Open API therefore it is not guaranteed that this method would not be changed in the future.
Hi Ivan,
thank you for the answer,
I'll try it in ASAP
Hello,
Finally, I took time to test it.
It works, thanks you for the tip
Regards
PS: For anyone interested, here is the piece of code:
Is this still the recommended way to achieve this? I am trying to prompt users to provide some feedback if they uninstall the plugin and this is not working for me. My code looks like:
Thanks.
How can I test this? I want to trigger this from an automated test, but couldn't find how to do that.
The closed I got was using:
But it throws an exception because it initiates my plugin as a bundled one
So.... How can I test an uninstall event?
How do you install your plugin in your test?
Using: