How to change Eclipse window title?

懵懂的女人 提交于 2019-12-03 12:03:11

问题


How to change the title (last part of it) of a running Eclipse?

I am speaking about Eclipse distribution itself, not about my program written for Eclipse.

Currently I have the the following title:

1 this part is set in Window -> Preferences -> General -> Workspace -> Workspace name.

Other parts are autogenerated.

I want to change part 2 which is now Eclipse. I have several Eclipses installed and want to refer them here.

UPDATE

I found file plugin.xml inside ./plugins/org.eclipse.epp.package.standard_XXXXX and found it containing a setting

     <property
           name="appName"
           value="Eclipse">
     </property>

I changed this as I like but it didn't affect the title.

UPDATE 2

Also I found setting in plugin.properties

productName=Eclipse

Unfortunately, changing this also didn't affect the title.


回答1:


You can't. Unless you are creating your own RCP app

The workbench window title is defined by the branding plugin. Eclipse defines the product and so you will have the "Eclipse" defined in its branding plugin, which will be displayed in the title bar.




回答2:


The following worked for me in Eclipse Luna:

  1. Open the file Eclipse\plugins\org.eclipse.platform_4.4.0.v20140925-0400\plugin.properties in a text editor. (The exact path will depend on the version.)

  2. Change the productName=Eclipse value to your desired title. Save the file.

  3. Start Eclipse once with the -clean argument.




回答3:


This is not really an answer to your question and it might help you or not, but you can have workspace specific title (at the beginning), see

https://stackoverflow.com/a/8665249/384674



来源:https://stackoverflow.com/questions/20818429/how-to-change-eclipse-window-title

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!