Renaming a resource file does not change the name of the editor part

In my plugin project, I have a view of the project explorer where I can rename the configuration file, which is shown in another part of the editor. You can rename the file in Explorer using the rename dialog box, but the corresponding title of the editor tab does not change. The same problem is described here as well as here . Is there a standard way to make rename work work without creating a custom listener?

0
source share
1 answer

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.

+1
source

Source: https://habr.com/ru/post/976363/


All Articles