Quantcast
Channel: JetBrains Developer Community : Thread List - IntelliJ IDEA Users
Viewing all articles
Browse latest Browse all 5661

[Plugin Dev] Trigger code when application's settings were changed

$
0
0

Hi All,

 

Is exists API to trigger some code when any settings were changed?

 

In my case I need to detect if File Template Settings was changed, but I agree to perform my code on any changes in the Settings...

 

I'm only noticed

ApplicationMagager.getApplication().addApplicationListener(new ApplicationListener() {  boolean canExitApplication();   void applicationExiting() {}  void beforeWriteActionStart(Object action) {}  void writeActionStarted(Object action) {}  void writeActionFinished(Object action) {     // my code  }}

 

Is it correct or this similiar to  "dirty hack" =) ?

 

Thanks,

Vladimir


Viewing all articles
Browse latest Browse all 5661

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>