I have a view which would like to be notified about all the currently opened editors. Where can I add a listener to achieve this?
I was expecting WorkbenchPage or EditorManager to have some appropriate listener registry, but I couldn’t find it.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Does your view uses a
org.eclipse.ui.IPartListener2?That is what is using this EditorListener, whose job is to react, for a given view, to Editor events (including open and close)
Now if your
ViewPartdirectly implements anIPartListener2, it can register itself to the variousEditors, like thisBytecodeReferenceView