且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

检查是否在eclipse插件开发中单击了保存按钮

更新时间:2023-11-30 17:19:34

有一个IEditorPartListener可以侦听编辑器是否为脏(表示未保存或不脏)已保存,您需要获取对IEditorPart的引用并添加正确的侦听器,而不是可以根据需要装饰导航器。

There is an IEditorPartListener that listens to if editor is "dirty" meaning unsaved or not dirty meaning saved you need to get a reference to the IEditorPart and add the correct listener than you can decorate you navigator as you please.