There will be a path of current opened file in title bar of eclipse workbench. Like this:
在eclipse工作台的标题栏中会有一个当前打开文件的路径。像这样:
But in eclipse plugin development, maybe open a editor that is not associated with any files. Thus, the path will be 'null', like as follow:
但是在eclipse插件开发中,可能会打开一个与任何文件无关的编辑器。因此,路径将为“null”,如下所示:
So, i would like change the 'null' of title bar in java code. Thank you !
所以,我想在java代码中更改标题栏的'null'。谢谢 !
1 个解决方案
#1
1
It is not really possible to change the window title code which is set in IDEWorkbenchWindowAdvisor
an internal Eclipse class which does not have any way to customize this code.
实际上不可能将IDEWorkbenchWindowAdvisor中设置的窗口标题代码更改为无法自定义此代码的内部Eclipse类。
The code expects IWorkbenchPart.getTitleToolTip
to return a reasonable value which does not seem to be happening for this particular editor.
代码期望IWorkbenchPart.getTitleToolTip返回一个合理的值,这个值似乎不会发生在这个特定的编辑器中。
#1
1
It is not really possible to change the window title code which is set in IDEWorkbenchWindowAdvisor
an internal Eclipse class which does not have any way to customize this code.
实际上不可能将IDEWorkbenchWindowAdvisor中设置的窗口标题代码更改为无法自定义此代码的内部Eclipse类。
The code expects IWorkbenchPart.getTitleToolTip
to return a reasonable value which does not seem to be happening for this particular editor.
代码期望IWorkbenchPart.getTitleToolTip返回一个合理的值,这个值似乎不会发生在这个特定的编辑器中。