Editors based on AbstractTextEditor (or one of its subclasses, such as TextEditor ) must handle renaming through a FileDocumentProvider that listens for resource changes.
Other editors should use IResourceChangeListener to solve this problem.
source share