简体   繁体   中英

Eclipse CompareEditor detect save from different editor

I have a problem with Custom Eclipse Compare editor and file editor.

When saving from file editor, compare editor keeps dirty flag, file editor gets saved. Same thing in revers works, compare and file editor both get marked as non-dirty files.

Is there a way for compare editor to detect the file change and remove dirty flag, it causes to open save dialog when trying to close compare editor even thoug file has been saved.

Have anyone had similar problems? Was solution found?

Check this article. It may be what you want. You can listen resource change event. http://www.eclipse.org/articles/Article-Resource-deltas/resource-deltas.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM