重命名资源文件不会更改编辑器的部分标题 [英] Rename resource file does not change editor part title
问题描述
编辑基于 AbstractTextEditor
(或其子类之一,例如 TextEditor
)应该通过 FileDocumentProvider
它监听资源更改。
其他编辑者需要使用 IResourceChangeListener
来处理这个。 p>
In my plugin project, I have a project explorer view where I can rename a config file which in shown in another editor part. The file can be renamed in the explorer with the rename resource dialog but the corresponding the editor tab title does not change. The same problem is described here and also here. Is there a standard way to get the rename functionality working without the creating a custom listener?
Editors based on AbstractTextEditor
(or one of its subclasses such as TextEditor
) should handle renames through the FileDocumentProvider
which listens for resource changes.
Other editors need to use an IResourceChangeListener
to deal with this.
这篇关于重命名资源文件不会更改编辑器的部分标题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!