如何更改 Eclipse 窗口图标

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/14599386/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 19:53:49  来源:igfitidea点击:

How to Change Eclipse Window Icon

eclipsewindowiconsbranding

提问by Bitterblue

I would like to change the icon of my eclipse installation permanently. So when I run eclipse it should have the changed icon in task barin alt+tablist (actually everywhere but those 2 are the ones I care about). No, I only have one workspace I work with. I just need another icon. Is it possible without installing another plug-in ?

我想永久更改我的 eclipse 安装的图标。因此,当我运行 eclipse 时,它​​应该在alt+tab列表中的任务栏中具有已更改的图标(实际上无处不在,但我关心的是那两个)。不,我只有一个工作区。我只需要另一个图标。是否可以不安装其他插件?

Edit:
This question is about programming because my programming lacks of efficiency because I have to circle at least once around the whole tab circle to stop at the right icon. I even changed the Alt+Tab display to look like XP because it is quick for the eye to recognize the correct icon (-> more efficient task switching). I liked the old purple circle so I can find it in a blink of an eye. Not it's more gray and blends to much with the background.

编辑:
这个问题是关于编程的,因为我的编程效率低下,因为我必须至少绕整个标签圈圈一次才能停在正确的图标上。我什至将 Alt+Tab 显示更改为看起来像 XP,因为眼睛可以快速识别正确的图标(-> 更有效的任务切换)。我喜欢旧的紫色圆圈,所以我可以在眨眼间找到它。不是它更灰色并且与背景融合得更多。

Like this (green "circle" is Eclipse):

像这样(绿色“圆圈”是 Eclipse):

enter image description here

在此处输入图片说明

I use:
Eclipse Java EE IDE for Web Developers.
Version: Juno Service Release 1
Build id: 20120920-0800
Windows 7

我使用:
面向 Web 开发人员的 Eclipse Java EE IDE。
版本:Juno Service Release 1
Build id:20120920-0800
Windows 7

Does eclipse run from a jar file ? Which one is responsible for the main window ? Maybe it contains the icon ?

eclipse 是否从 jar 文件运行?哪个负责主窗口?也许它包含图标?

回答by Veger

Eclipse has an API for branding, which can be used to change the Eclipse branding to a custom branding. This includes changing the icon, the name of the application, splash screen, and so on.

Eclipse 有一个用于标记的 API,可用于将 Eclipse 标记更改为自定义标记。这包括更改图标、应用程序名称、启动画面等。

This Eclipse articledescribes how to brand an Eclipse 3.x application. Eclipse 4.x allows you to create a custom application, it is different than for Eclipse 3.x, but it also involves providing some details to a XMl file, for more information and a tutorial, see the Eclipse Products and Deployment tutorial of Lars Vogel.

这篇 Eclipse 文章描述了如何标记 Eclipse 3.x 应用程序。Eclipse 4.x 允许您创建自定义应用程序,它与 Eclipse 3.x 不同,但它还涉及向 XMl 文件提供一些详细信息,有关更多信息和教程,请参阅LarsEclipse 产品和部署教程沃格尔

Unfortunately not without creating a (very) small plugin. But you do need to store the new icons somewhere, so creating such a storage plugin including a small XML file with some extension points should not be too difficult.

不幸的是,并非没有创建一个(非常)小的插件。但是您确实需要将新图标存储在某处,因此创建这样一个存储插件,包括带有一些扩展点的小型 XML 文件应该不会太困难。

回答by Gnoupi

You could follow this How-to, which is common to all exe files.

你可以按照这个How-to,这是所有 exe 文件通用的。

It involves using Resource Hacker, to change the icon file used in the exe file:

它涉及使用Resource Hacker来更改 exe 文件中使用的图标文件:

enter image description here

在此处输入图片说明

You could use it on eclipse.exe, and it should give you the result you expect.

您可以在 eclipse.exe 上使用它,它应该会给您预期的结果。