Eclipse Java将更改保存在GraphicalEditor上 1 月,2 周 Questions & Answers 53 我需要为现有的Eclipse应用程序创建一个插件,该应用程序侦听当前打开的图形编辑器中的更改,并在编辑器变脏后立即保存更改
# 1 楼答案
如果编辑器有
IEditorPart
,可以使用IEditorPart.addPropertyListener
监听IEditorPart.PROP_DIRTY
属性的变化