How to get “active editor” in Eclipse plugin?

前端 未结 3 1932
一个人的身影
一个人的身影 2021-01-04 05:40

In my Eclipse plugin, I need to know when the editor that is visible on the screen has changed. I am currently getting the active editor as follows:

Platform         


        
3条回答
  •  北荒
    北荒 (楼主)
    2021-01-04 06:14

    The question is similar to the question posted in the link below. One way to achieve this is to keep track of which editor was previously opened by creating a Part Listener. Eclipse Plugin - How to get the last worked on editor

提交回复
热议问题