How to implement and connect some Listener which will annotate each file opened in editor


Hi! I have an issue: I had created the custom Annotator implementation, which is actually working, it does annotate but only the first file was opened in the editor. How can I implement such logic to annotate all the files opened and then annotate each new open file?
As I understand I need to implement some FileEditorManagerListener, but I didn't find  how exactly  and how to call annotate method inside that FileEditorManagerListener implementation class. Thanks in advance! 


Hi Dmytro,

I'm not sure I understand the issue. Does your annotator works only in the first opened file and then it stops working? If this is the case, then it sounds like a bug in the platform or in your implementation. There is no need to implement listeners for Annotator to work.

Please share the code.