在Windows 8.1的高分辨率屏幕上,Eclipse界面图标非常小。

时间:2022-09-10 22:58:11

The various icons and buttons in the Eclipse (Kepler) interface are very, very small on a laptop with a 3200x1800px screen. The red error decoration that appears to indicate errors on files is difficult to see unless my nose a few cm from the screen.

Eclipse(开普勒)界面上的各种图标和按钮非常非常小,在一台3200x1800px的笔记本电脑上。在文件中显示错误的红色错误装饰很难看到,除非我的鼻子离屏幕只有几厘米。

I've played around with adjusting the screen resolution and other settings in the operating system (Windows 8.1), which helps, but results in other applications appearing too large, and even then the Eclipse icons are uncomfortably small. Enlarging the fonts in the Eclipse preferences (window>preferences>Dialog Font) doesn't affect the icon size.

我已经在操作系统(Windows 8.1)中调整了屏幕分辨率和其他设置,这很有帮助,但是其他应用程序的效果太大了,即使是这样,Eclipse图标也显得非常小。在Eclipse首选项中扩展字体(窗口>首选项>对话字体)不会影响图标大小。

Is there any easy way to force larger icons? Any work arounds (I've used the Magnifier but that's a rather clunky solution)? Should I just buy a magnifying glass and keep it next to my mouse? Maybe someone should make a mouse with a magnifying glass embedded? :)

有没有什么简单的方法来强制放大图标?任何工作都有(我用过放大镜,但那是一个相当笨拙的解决方案)?我应该买一个放大镜,放在我的鼠标旁边吗?也许有人应该用放大镜来制造一只老鼠?:)

Thanks.

谢谢。

20 个解决方案

#1


6  

I have looked up solutions for this issue for the last month, but I have not found an ideal solution yet. It seems there should be a way around it, but I just can't find it.

我已经在上个月找到了这个问题的解决方案,但是我还没有找到一个理想的解决方案。似乎应该有办法绕过它,但我就是找不到。

I use a laptop with a 2560x1600 screen with the 200% magnification setting in Windows 8.1 (which makes it looking like a 1280x800 screen but clearer).

我使用的是一台2560x1600的笔记本电脑,在Windows 8.1中设置了200%的放大倍数(这让它看起来像一个1280x800的屏幕,但更清晰)。

Applications that support such "HiDPI" mode look just gorgeous, but the ones that don't (e.g. Eclipse) show tiny icons that are almost unreadable.

支持这种“HiDPI”模式的应用程序看起来很华丽,但是那些不支持“HiDPI”模式的应用程序(例如Eclipse)显示的图标几乎是不可读的。

I also use an outdated version of Visual Studio. That has not been updated for HiDPI (obviously MS wants me to use a newer version of VS), but it still works kind of ok with HiDPI screens since it just scales things up twice -- the sizes of icons and letters are normal but they look lower-resolution.

我还使用了一个过时的Visual Studio。HiDPI还没有更新(显然MS希望我使用更新版本的VS),但它仍然适用于HiDPI屏幕,因为它只是把东西放大了两倍——图标和字母的大小是正常的,但看起来分辨率较低。

After I saw how VS works, I began looking up a way to launch Eclipse in the same mode since it would not be technically very hard to just scale things up like how VS does. I thought there would be an option I could set to launch Eclipse in that mode. I couldn't find it though.

在我了解了VS的工作原理之后,我开始寻找一种方式,在相同的模式下启动Eclipse,因为从技术上来说,很难像VS那样将事情进行扩展。我想我可以选择在那个模式下启动Eclipse。但是我找不到。

After all, I ended up lowering the screen resolution to 1/4 (from 2560x1600 to 1280x800) with no magnification (from 200% to 100%) and not taking advantage of the high-resolution screen until Eclipse gets updated to support it since I had to do some work, but I am desparately waiting for an answer to this issue.

毕竟,我最终降低屏幕分辨率1/4(从2560 x1600 1280 x800)没有放大(从200%到100%),而不是利用高分辨率屏幕,直到Eclipse更新来支持它因为我必须做一些工作,但是我跳脱等待一个回答这个问题。

#2


35  

I figured that one solution would be to run a batch operation on the Eclipse JAR's which contain the icons and double their size. After a bit of tinkering, it worked. Results are pretty good - there's still a few "stubborn" icons which are tiny but most look good.

我认为一个解决方案是在Eclipse JAR上运行一个批处理操作,其中包含图标,并将其大小增加一倍。经过一番修补,它成功了。结果相当不错——仍然有一些“顽固”的图标,虽然很小,但看起来很不错。

在Windows 8.1的高分辨率屏幕上,Eclipse界面图标非常小。

I put together the code into a small project: https://github.com/davidglevy/eclipse-icon-enlarger

我将代码整合到一个小项目中:https://github.com/davidglevy/eclipse- enmore。

The project works by:

项目的作品:

  1. Iterating over every file in the eclipse base directory (specified in argument line)
  2. 遍历eclipse基目录中的每个文件(在参数行中指定)
  3. If a file is a directory, create a new directory under the present one in the output folder (specified in the argument line)
  4. 如果一个文件是一个目录,那么在输出文件夹中创建一个新的目录(在参数行中指定)
  5. If a file is a PNG or GIF, double
  6. 如果一个文件是PNG或GIF,则加倍。
  7. If a file is another type copy
  8. 如果文件是另一种类型的副本。
  9. If a file is a JAR or ZIP, create a target file and process the contents using a similar process: a. Images are doubled b. Other files are copied across into the ZipOutputStream as is.
  10. 如果一个文件是一个JAR或ZIP,那么创建一个目标文件并使用一个类似的过程来处理内容:a.图像是双倍的b.其他文件被复制到ZipOutputStream中。

The only problem I've found with this solution is that it really only works once - if you need to download plugins then do so in the original location and re-apply the icon increase batch process.

我在这个解决方案中发现的唯一问题是,它实际上只运行一次——如果您需要下载插件,那么在原始位置上这样做,然后重新应用图标,增加批处理过程。

On the Dell XPS it takes about 5 minutes to run.

在戴尔XPS上运行大约需要5分钟。

Happy for suggestions/improvements but this is really just an adhoc solution while we wait for the Eclipse team to get a fix out.

对于建议/改进很高兴,但这实际上只是一个临时解决方案,而我们等待Eclipse团队来解决这个问题。

#3


14  

For completion I thought I'd add that this issue is solved in Eclipse 4.6 Neon https://www.eclipse.org/downloads/index-developer.php (the current developer version). The icons look a bit sad (low resolution) but at least they are scaled correctly on my 4k screen.

为了完成这个任务,我想我要补充的是,这个问题已经在Eclipse 4.6氖https://www.eclipse.org/downloads/index developer.php(当前开发人员版本)中解决了。图标看起来有点悲哀(低分辨率),但至少它们在我的4k屏幕上是正确缩放的。

#4


9  

I'm running on a Dell XPS 15. Rather than stuffing around with resolutions and magnifications and all that, I just did the following:

我正在运行一个戴尔XPS 15。我只是做了以下几件事:

  • Right click the launcher icon
  • 右击启动图标。
  • Click on "properties"
  • 点击“属性”
  • Select the "compatibility" tab
  • 选择“兼容性”选项卡
  • Choose "Windows XP (Service Pack 3)" for "Run this program in compatibility mode for:".
  • 选择“Windows XP (Service Pack 3)”为“运行这个程序的兼容性模式:”。

Everything seems to work fine and the display looks good (if a bit blurry/pixelly). The only difference i can see is that the title bar is in Windows XP style (oh no!!!).

一切看起来都很好,显示器看起来很好(如果有点模糊/像素化)。我能看到的唯一不同是标题栏是在Windows XP风格中(噢,不!!!)

I'm curious to know if this works for others and if anyone comes across any problems.

我很想知道这是否适用于其他人,如果有人遇到任何问题。

#5


9  

I found the easiest way was to create a manifest file which forces Windows to scale the application. It is blurry and non-ideal but better than an almost invisible UI! It seems this technique is applicable to any application too.

我发现最简单的方法是创建一个清单文件,它强制Windows扩展应用程序。它是模糊的和非理想的,但比一个几乎看不见的UI更好!这种技术似乎也适用于任何应用程序。

Create an eclipse.exe.manifest file in the same folder as eclipse.exe and place the following XML within it:

创建一个eclipse.exe。清单文件与eclipse相同的文件夹。exe并将以下XML放入其中:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>

<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3">

<dependency>
  <dependentAssembly>
    <assemblyIdentity
      type="win32"
      name="Microsoft.Windows.Common-Controls"
      version="6.0.0.0" processorArchitecture="*"
      publicKeyToken="6595b64144ccf1df"
      language="*">
    </assemblyIdentity>
  </dependentAssembly>
</dependency>

<dependency>
  <dependentAssembly>
    <assemblyIdentity
      type="win32"
      name="Microsoft.VC90.CRT"
      version="9.0.21022.8"
      processorArchitecture="amd64"
      publicKeyToken="1fc8b3b9a1e18e3b">
    </assemblyIdentity>
  </dependentAssembly>
</dependency>

<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
  <security>
    <requestedPrivileges>
      <requestedExecutionLevel
        level="asInvoker"
        uiAccess="false"/>
    </requestedPrivileges>
  </security>
</trustInfo>

<asmv3:application>
  <asmv3:windowsSettings xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">
    <ms_windowsSettings:dpiAware xmlns:ms_windowsSettings="http://schemas.microsoft.com/SMI/2005/WindowsSettings">false</ms_windowsSettings:dpiAware>
  </asmv3:windowsSettings>
</asmv3:application>

</assembly>

#6


7  

The best way is to edit the exe manifest with something like resource tuner and add

最好的方法是编辑exe清单,并添加一些类似于资源调整器的内容。

    <application xmlns="urn:schemas-microsoft-com:asm.v3"><windowsSettings><ms_windowsSettings:dpiAware xmlns:ms_windowsSettings="http://schemas.microsoft.com/SMI/2005/WindowsSettings" xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">false</ms_windowsSettings:dpiAware></windowsSettings></application>        

after dependency to set the exe as dpi unaware. This way the program will be a little pixelated but it will be in a confortable size.

依赖于将exe设置为dpi不知道。通过这种方式,程序将会像素化,但它将会是一个适合的大小。

#7


4  

-SurfacePro3-

-SurfacePro3 -

  • Download and unzip eclipse "32bit Version".
  • 下载和解压eclipse“32位版本”。
  • Run on "Windows XP mode".
  • 运行在“Windows XP模式”上。

#8


3  

The compatibility mode for Windows Xp, it's only available for the Eclipse 32 bit version and after running in this compatibility mode the icons and text will be the right size, but blurry because they are scaled from their native resolution to the screen resolution and doing so the quality is lost.

Windows Xp兼容模式,它只用于Eclipse 32位版本后,在这个兼容模式运行的图标和文本将正确的大小,但模糊,因为他们扩展从原始分辨率的屏幕分辨率,这样做失去质量。

#9


3  

I fixed @Sigh's solution by creating a (Linux) shellscript (.sh) to do something similar. This is very crude, brutal, and requires adoption for your specific system. Use at your own risk. It might break your entire installation. Make backups of the folders before you run this script. Script can be improved.

我通过创建一个(Linux) shell脚本(.sh)来执行类似的操作,从而修复了@叹号的解决方案。这是非常粗糙、残忍的,需要为您的特定系统采用。使用自己的风险。它可能会破坏你的整个安装。在运行此脚本之前,对文件夹进行备份。脚本可以改善。

#!/bin/bash

for J in *.jar
do
        echo "Copying $J..."
        mkdir -p "/tmp/$J"
        cp "$J" "/tmp/$J/"
        cd "/tmp/$J"

        echo "Extracting $J..."
        jar xf "$J"
        rm "$J"

        echo "Processing images..."
        find . -name "*.gif" -exec convert {} -resize 200% {} \;

        echo "Compressing $J..."
        if [ `ls .[^.]* 2>/dev/null | wc -l` = 0 ]
        then
                jar cf "$J" *
        else
                jar cf "$J" * .[!.]*
        fi
        cd -
        mv $J{,-bak}
        mv "/tmp/$J/$J" .
        rm -rf "/tmp/$J"

        echo "Done."
        echo ""
done

Run this in /opt/eclipse/plugins and ~/.eclipse/org.eclipse.platform_4.x.x/plugins (or whatever the paths for your installation are). Same issues as with @Sigh's solution: This is a brutal "fix" and breaks after every update or new installation.

在/opt/eclipse/插件和~/.eclipse/org.eclipse.platform_4.x上运行这个。x/插件(或任何安装的路径)。与@叹号的解决方案一样:这是一个残酷的“修复”,在每次更新或新的安装之后都会中断。

Script can be perfected:

脚本可以完善:

  • Ignore .jar files without /icons/ folder
  • 忽略.jar文件没有/图标/文件夹。
  • Only resize images that are 16x16 so you can run this again after every update/installation
  • 只调整16x16的图像大小,以便在每次更新/安装之后再次运行。

Requires imagemagick.

需要imagemagick。


Caveats

  • It doesn't work on all icons.
    • Does anyone know where the other assets are or why they aren't resized? Perhaps they are not .gif?
    • 有谁知道其他资产在哪里或者为什么没有调整大小?也许它们不是。gif?
  • 它对所有的图标都不起作用。有谁知道其他资产在哪里或者为什么没有调整大小?也许它们不是。gif?
  • Project Explorer icons are messed up.
  • Project Explorer图标混乱不堪。

Fixes are welcome!

修复是受欢迎的!

#10


3  

Best effortless solution is to go for Eclipse Neon. All bugs are fixed as a part of this release. https://bugs.eclipse.org/bugs/show_bug.cgi?id=421383

最佳的轻松解决方案是使用Eclipse霓虹灯。所有的bug都是这个版本的一部分。https://bugs.eclipse.org/bugs/show_bug.cgi?id=421383

#11


2  

Following solution worked for me

下面的解决方案对我起作用了。

First you need to add this registry key

首先,您需要添加这个注册表项。

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\SideBySide\PreferExternalManifest (DWORD) to 1

Next, a manifest file with the same name as the executable must be present in the same folder as the executable. The file is named eclipse.exe.manifest and consists of:

接下来,具有与可执行文件相同名称的清单文件必须与可执行文件在同一文件夹中。该文件名为eclipse.exe。清单,包括:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3">
    <description>eclipse</description>
    <trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
        <security>
            <requestedPrivileges>
                <requestedExecutionLevel xmlns:ms_asmv3="urn:schemas-microsoft-com:asm.v3"
                               level="asInvoker"
                               ms_asmv3:uiAccess="false">
                </requestedExecutionLevel>
            </requestedPrivileges>
        </security>
    </trustInfo>
    <asmv3:application>
        <asmv3:windowsSettings xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">
            <ms_windowsSettings:dpiAware xmlns:ms_windowsSettings="http://schemas.microsoft.com/SMI/2005/WindowsSettings">false</ms_windowsSettings:dpiAware>
        </asmv3:windowsSettings>
    </asmv3:application>
</assembly>

you can find more details here

你可以在这里找到更多的细节。

#12


2  

Have a look at Neon (4.6) M6 - New and Noteworthy, the milestone release contains some automatic scaling for images (e.g. for toolbar).

看看氖(4.6)M6 -新的和值得注意的,里程碑版本包含了一些图像的自动缩放(例如工具栏)。

SWT provides resolution-based auto-scaling

SWT提供分辨率的自动伸缩

SWT now automatically scales images on high-DPI monitors on Windows and Linux, similar to the Mac's Retina support on OS X. In the absence of high-resolution images, SWT will auto-scale the available images to ensure that SWT-based applications like Eclipse are scaled proportionately to the resolution of the monitor.

SWT现在可以在Windows和Linux上的高dpi显示器上自动缩放图像,类似于Mac在OS x上的视网膜支持。在缺乏高分辨率图像的情况下,SWT将自动缩放可用的图像,以确保像Eclipse这样的基于SWT的应用程序按比例按比例缩放到显示器的分辨率。

在Windows 8.1的高分辨率屏幕上,Eclipse界面图标非常小。

This feature can be disabled on Windows and GTK by setting this VM argument to false in eclipse.ini or on the command line after -vmargs:

可以在Windows和GTK上禁用此功能,在eclipse中设置这个VM参数为false。ini或命令行后-vmargs:

-Dswt.enable.autoScale=false

-Dswt.enable.autoScale = false

Auto-scaling cannot be disabled on the Mac as it is provided by the OS.

自动伸缩不能在Mac上禁用,因为它是由操作系统提供的。

Caveats: We're aware that some scaled images look bad at scale factors less than 200%. This will be improved in M7. Furthermore, we're working on support for high-DPI images in Platform UI, so that plug-in providers can add high-DPI icons without doing any code changes.

警告:我们意识到一些缩放的图像在规模小于200%的情况下看起来很糟糕。这将在M7中得到改进。此外,我们正在为平台UI中的高dpi图像提供支持,以便插件提供者可以在不做任何代码更改的情况下添加高dpi的图标。



Or maybe this helps, in Eclipse Mars API for high resolution was added

或者,在Eclipse Mars API中增加了高分辨率。

New APIs have been added to provide support for rendering high-resolution images on high-DPI monitors. Two constructors have been added to the Image class. They accept image-provider callbacks that allow clients to supply resolution-dependent versions of images:

添加了新的api,以支持在高dpi监视器上呈现高分辨率图像。在Image类中添加了两个构造函数。他们接受image-provider回调,允许客户端提供基于分辨率的图像版本:

public interface ImageDataProvider {
  public ImageData getImageData (int zoom);
}
public interface ImageFileNameProvider {
  public String getImagePath (int zoom);
}

Depending on the user's monitor configuration, SWT will request images with the corresponding zoom level. Here's an example that displays 3 original images, followed by variants whose resolution changes depending your monitor's resolution: Snippet367.java.

根据用户的监视器配置,SWT将请求具有相应缩放级别的图像。这里有一个显示3个原始图像的示例,然后是根据您的显示器的分辨率而变化的变体:Snippet367.java。

Note that this is just the first step to support high-resolution images in SWT and Eclipse-based applications. Work is underway to adopt the new APIs in the platform. Futhermore, more work in SWT is required to properly support drawing into high-resolution images via GC.

请注意,这只是在SWT和基于eclipse的应用程序中支持高分辨率图像的第一步。在平台上采用新的api的工作正在进行中。此外,还需要在SWT中进行更多的工作,以通过GC对高分辨率图像进行适当的支持。

APIs for high-DPI monitor support
http://help.eclipse.org/mars/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2FwhatsNew%2Fplatform_isv_whatsnew.html

用于高dpi监控的api支持http://help.eclipse.org/mars/index.jsp?

#13


1  

Thank you Sigh David Levy. I could not develop on Eclipse w/out your sol'n. I had to add a coupla catch (exceptions) to your code to get it to work:

感谢大卫·利维。我无法在Eclipse w/out上开发你的sol。我必须在代码中添加一个coupla catch(异常)来让它工作:

            while (srcEntries.hasMoreElements()) {
                    ZipEntry entry = (ZipEntry) srcEntries.nextElement();
                    logger.info("Processing zip entry ["+ entry.getName() + "]");

                    ZipEntry newEntry = new ZipEntry(entry.getName());


                    try { outStream.putNextEntry(newEntry); } 
                    ***catch (Exception e) { 
                        logger.error("error: ", e);
                        outStream.closeEntry();
                        continue;*
                    }**

#14


1  

There is a nice article in JaxEnter for an work around HiDPI for Eclipse

在JaxEnter中有一篇很好的文章介绍了关于Eclipse的HiDPI的工作。

#15


1  

What worked for me at the end was adding the manifest file to the javaw.exe just like Heikki Juntunen said at https://bugs.eclipse.org/bugs/show_bug.cgi?id=421383#c66

在最后为我工作的是向javaw添加清单文件。exe就像Heikki Juntunen说的,在https://bugs.eclipse.org/bugs/show_bug.cgi?id=421383#c66。

The instructions about how to edit the registry and create the manifest file where written by Matthew Cochrane at https://bugs.eclipse.org/bugs/show_bug.cgi?id=421383#c60 and @KItis wrote the instructions here

关于如何编辑注册表并创建清单文件的说明,由Matthew Cochrane在https://bugs.eclipse.org/bugs/show_bug.cgi?id=421383#c60和@KItis在这里写下了指令。

I put here a copy of that post:

我在这里放了一份这篇文章的副本:


First you need to add this registry key

首先,您需要添加这个注册表项。

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\SideBySide\PreferExternalManifest (DWORD) to 1

Next, a manifest file with the same name as the executable must be present in the same folder as the executable. The file is named eclipse.exe.manifest and consists of:

接下来,具有与可执行文件相同名称的清单文件必须与可执行文件在同一文件夹中。该文件名为eclipse.exe。清单,包括:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3">
    <description>eclipse</description>
    <trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
        <security>
            <requestedPrivileges>
                <requestedExecutionLevel xmlns:ms_asmv3="urn:schemas-microsoft-com:asm.v3"
                               level="asInvoker"
                               ms_asmv3:uiAccess="false">
                </requestedExecutionLevel>
            </requestedPrivileges>
        </security>
    </trustInfo>
    <asmv3:application>
        <asmv3:windowsSettings xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">
            <ms_windowsSettings:dpiAware xmlns:ms_windowsSettings="http://schemas.microsoft.com/SMI/2005/WindowsSettings">false</ms_windowsSettings:dpiAware>
        </asmv3:windowsSettings>
    </asmv3:application>
</assembly>

#16


0  

Here is my solution Inspired by @Sigh's solution (this one doesn't use maven):

下面是我的解决方案,灵感来自于@叹号的解决方案(这个方法不使用maven):

https://github.com/gitAmrit/EclipseIconEnlarger/tree/master#eclipseiconenlarger

https://github.com/gitAmrit/EclipseIconEnlarger/tree/master eclipseiconenlarger

This works by searching for all images smaller or equal to 16x16px and scaling them up by whatever factor the user wants.

通过搜索所有小于或等于16x16px的图像,并按用户需要的任何因素进行扩展。

running the utility: java images.EclipseIconEnlarger eclipseBasePath magnificaitonfactor

运行工具:java映像。EclipseIconEnlarger eclipseBasePath magnificaitonfactor

eg: java images.EclipseIconEnlarger C:\Users\Amrit\Codes\eclipse 2

如:java映像。EclipseIconEnlarger C:\Users\Amrit\Codes\eclipse 2

eclipseBasePath = path where eclipse.exe is located, for e.g. C:\Users\Amrit\Codes\eclipse magnificationfactor = factor by which the image should be enlarged, for e.g. 2 = double

eclipsesebasepath =路径,eclipse。exe位于,例如C:\Users\Amrit\Codes\eclipse magnificationfactor =因素的形象应该扩大,例如2 =双

#17


0  

Here's another command line solution, but this works for Windows.

这是另一个命令行解决方案,但它适用于Windows。

It requires winrar installed (edit the set winrar line to point to the winrar installation).

它需要安装winrar(编辑设置winrar行来指向winrar安装)。

It also requires imagemagick to be installed and its path to be added in your commandline.

它还需要安装imagemagick并将其路径添加到命令行中。

One last comment is I recommend running this before opening Eclipse for the first time (ie, fresh install). There are icons that get automatically unpacked from jars and saved in eclipse/configuration/org.eclips.osgi/... (potentially among other folders) and editing the .jar file prevents the icon from being resized. You might be able to delete this folder and it might autoextract again, but I can't confirm.

最后一个建议是,我建议在第一次打开Eclipse之前运行它(即,重新安装)。有一些图标可以从jar中自动打开,并保存在eclipse/configuration/org. eclipse中。(可能在其他文件夹中)并编辑.jar文件,防止图标被调整大小。您可能可以删除这个文件夹,它可能再次自动提取,但我无法确认。

To run, just create a doubler.bat file in your eclipse/plugins directory and it should resize any icon smaller than 32x32 to that proportioned size.

要运行,只需创建一个doubler。在您的eclipse/plugins目录中的bat文件,它应该将任何小于32x32的图标调整成比例大小。

Here's the code:

这是代码:

@echo off
set winrar="C:\Program Files\WinRAR\winrar.exe"
set startpath=%~dp0

::All *.jar in this folder
FOR %%G in (*.jar) do (call :EachJar "%%G")

GOTO :eof

:EachJar
  ::echo %1
  set nameWOQuotes=%~1
  mkdir "tmp\%nameWOQuotes%"
  ::copy "%nameWOQuotes%" "tmp\%nameWOQuotes%.bak" >NUL
  %winrar% x -inul "%nameWOQuotes%" *.jpg *.gif *.png *.tif *.tiff "tmp\%nameWOQuotes%\"
  ::pause
  cd "tmp\%nameWOQuotes%"
  FOR /R .\ %%H in (*.jpg *.gif *.png *.tif *.tiff) do ( 
    ::echo %nameWOQuotes%-%%~nxH >> "%startpath%\output.txt"
    identify "%%H" >> "%startpath%\output.txt"
   convert "%%H" -resize 32x32^< "%%H" )
  %winrar% a -r -u "%startpath%\%nameWOQuotes%" "*"
  cd "%startpath%"
  rmdir /s /q "tmp\%nameWOQuotes%"
Goto :eof

It creates a file output.txt and inserts all the ORIGINAL images metadata before it is converted, regardless of whether or not it changed size.

它创建一个文件输出。txt在转换前插入所有原始图像元数据,不管它是否改变大小。

#18


0  

If you do not want to install a newer version of eclipse

如果您不想安装更新版本的eclipse。

As mentioned here, in the eclipse.init file add -Dswt.autoScale=exact after the -vmargs and you are good to go.

正如这里提到的,在eclipse中。init文件添加-Dswt。autoScale=后面的-vmargs,你很好。

Here exact scales the icons to the native zoom. But you will have to adjust with the blurred and jagged icons.

这里精确地将图标缩放到本机缩放。但你将不得不适应模糊和锯齿状的图标。

#19


0  

I had this problem when I changed my default Windows 10 language from Eng to Italian, with Eclipse being installed when default language was Eng. Reverting Windows language to Eng and rebooting solved the problem. I don’t know what’s happened, Windows rename some folders like C:\Users translating it in your default language (i.e. C:\Utenti) and maybe this is causing problems.

当我将默认的Windows 10语言从Eng改为意大利语时,我遇到了这个问题,默认语言是Eng时,Eclipse就被安装了。将Windows语言恢复到Eng并重新启动解决了这个问题。我不知道发生了什么,Windows文件夹重命名一些像C:\Users翻译在你的默认语言(例如C:\ Utenti),也许这就是导致问题。

#20


-1  

Jae's above solution worked for me. The manifest solution didn't work for me. Thanks Jae.

Jae的上述解决方案对我有效。明显的解决方案对我不起作用。谢谢Jae。

Setup:On my windows 8.1 64 bit non tablet laptop I downloaded eclipse 64 bit with jdk 64 bit.

安装:在我的windows 8.1 64位非平板电脑上,我用jdk 64位下载了eclipse 64位。

  1. Right mouse click on desktop to access screen resolution and lowered the screen resolution display from 3000 level to 2048 x 1152.
  2. 鼠标右键点击桌面来访问屏幕分辨率,并将屏幕分辨率从3000级降低到2048x1152。
  3. Click on make text and other items larger or smaller link and changed it to large 150% instead of extra extra large - 250%.
  4. 点击使文本和其他条目更大或更小的链接,并将其改为大150%而不是额外的大- 250%。
  5. Logged out and Logged back in.
  6. 注销并重新登录。
  7. Restart Eclipse and the icons are now visible even if it is a bit smaller, but much more legible now.
  8. 重新启动Eclipse,图标现在可以看到,即使它稍微小一些,但现在更清晰了。

#1


6  

I have looked up solutions for this issue for the last month, but I have not found an ideal solution yet. It seems there should be a way around it, but I just can't find it.

我已经在上个月找到了这个问题的解决方案,但是我还没有找到一个理想的解决方案。似乎应该有办法绕过它,但我就是找不到。

I use a laptop with a 2560x1600 screen with the 200% magnification setting in Windows 8.1 (which makes it looking like a 1280x800 screen but clearer).

我使用的是一台2560x1600的笔记本电脑,在Windows 8.1中设置了200%的放大倍数(这让它看起来像一个1280x800的屏幕,但更清晰)。

Applications that support such "HiDPI" mode look just gorgeous, but the ones that don't (e.g. Eclipse) show tiny icons that are almost unreadable.

支持这种“HiDPI”模式的应用程序看起来很华丽,但是那些不支持“HiDPI”模式的应用程序(例如Eclipse)显示的图标几乎是不可读的。

I also use an outdated version of Visual Studio. That has not been updated for HiDPI (obviously MS wants me to use a newer version of VS), but it still works kind of ok with HiDPI screens since it just scales things up twice -- the sizes of icons and letters are normal but they look lower-resolution.

我还使用了一个过时的Visual Studio。HiDPI还没有更新(显然MS希望我使用更新版本的VS),但它仍然适用于HiDPI屏幕,因为它只是把东西放大了两倍——图标和字母的大小是正常的,但看起来分辨率较低。

After I saw how VS works, I began looking up a way to launch Eclipse in the same mode since it would not be technically very hard to just scale things up like how VS does. I thought there would be an option I could set to launch Eclipse in that mode. I couldn't find it though.

在我了解了VS的工作原理之后,我开始寻找一种方式,在相同的模式下启动Eclipse,因为从技术上来说,很难像VS那样将事情进行扩展。我想我可以选择在那个模式下启动Eclipse。但是我找不到。

After all, I ended up lowering the screen resolution to 1/4 (from 2560x1600 to 1280x800) with no magnification (from 200% to 100%) and not taking advantage of the high-resolution screen until Eclipse gets updated to support it since I had to do some work, but I am desparately waiting for an answer to this issue.

毕竟,我最终降低屏幕分辨率1/4(从2560 x1600 1280 x800)没有放大(从200%到100%),而不是利用高分辨率屏幕,直到Eclipse更新来支持它因为我必须做一些工作,但是我跳脱等待一个回答这个问题。

#2


35  

I figured that one solution would be to run a batch operation on the Eclipse JAR's which contain the icons and double their size. After a bit of tinkering, it worked. Results are pretty good - there's still a few "stubborn" icons which are tiny but most look good.

我认为一个解决方案是在Eclipse JAR上运行一个批处理操作,其中包含图标,并将其大小增加一倍。经过一番修补,它成功了。结果相当不错——仍然有一些“顽固”的图标,虽然很小,但看起来很不错。

在Windows 8.1的高分辨率屏幕上,Eclipse界面图标非常小。

I put together the code into a small project: https://github.com/davidglevy/eclipse-icon-enlarger

我将代码整合到一个小项目中:https://github.com/davidglevy/eclipse- enmore。

The project works by:

项目的作品:

  1. Iterating over every file in the eclipse base directory (specified in argument line)
  2. 遍历eclipse基目录中的每个文件(在参数行中指定)
  3. If a file is a directory, create a new directory under the present one in the output folder (specified in the argument line)
  4. 如果一个文件是一个目录,那么在输出文件夹中创建一个新的目录(在参数行中指定)
  5. If a file is a PNG or GIF, double
  6. 如果一个文件是PNG或GIF,则加倍。
  7. If a file is another type copy
  8. 如果文件是另一种类型的副本。
  9. If a file is a JAR or ZIP, create a target file and process the contents using a similar process: a. Images are doubled b. Other files are copied across into the ZipOutputStream as is.
  10. 如果一个文件是一个JAR或ZIP,那么创建一个目标文件并使用一个类似的过程来处理内容:a.图像是双倍的b.其他文件被复制到ZipOutputStream中。

The only problem I've found with this solution is that it really only works once - if you need to download plugins then do so in the original location and re-apply the icon increase batch process.

我在这个解决方案中发现的唯一问题是,它实际上只运行一次——如果您需要下载插件,那么在原始位置上这样做,然后重新应用图标,增加批处理过程。

On the Dell XPS it takes about 5 minutes to run.

在戴尔XPS上运行大约需要5分钟。

Happy for suggestions/improvements but this is really just an adhoc solution while we wait for the Eclipse team to get a fix out.

对于建议/改进很高兴,但这实际上只是一个临时解决方案,而我们等待Eclipse团队来解决这个问题。

#3


14  

For completion I thought I'd add that this issue is solved in Eclipse 4.6 Neon https://www.eclipse.org/downloads/index-developer.php (the current developer version). The icons look a bit sad (low resolution) but at least they are scaled correctly on my 4k screen.

为了完成这个任务,我想我要补充的是,这个问题已经在Eclipse 4.6氖https://www.eclipse.org/downloads/index developer.php(当前开发人员版本)中解决了。图标看起来有点悲哀(低分辨率),但至少它们在我的4k屏幕上是正确缩放的。

#4


9  

I'm running on a Dell XPS 15. Rather than stuffing around with resolutions and magnifications and all that, I just did the following:

我正在运行一个戴尔XPS 15。我只是做了以下几件事:

  • Right click the launcher icon
  • 右击启动图标。
  • Click on "properties"
  • 点击“属性”
  • Select the "compatibility" tab
  • 选择“兼容性”选项卡
  • Choose "Windows XP (Service Pack 3)" for "Run this program in compatibility mode for:".
  • 选择“Windows XP (Service Pack 3)”为“运行这个程序的兼容性模式:”。

Everything seems to work fine and the display looks good (if a bit blurry/pixelly). The only difference i can see is that the title bar is in Windows XP style (oh no!!!).

一切看起来都很好,显示器看起来很好(如果有点模糊/像素化)。我能看到的唯一不同是标题栏是在Windows XP风格中(噢,不!!!)

I'm curious to know if this works for others and if anyone comes across any problems.

我很想知道这是否适用于其他人,如果有人遇到任何问题。

#5


9  

I found the easiest way was to create a manifest file which forces Windows to scale the application. It is blurry and non-ideal but better than an almost invisible UI! It seems this technique is applicable to any application too.

我发现最简单的方法是创建一个清单文件,它强制Windows扩展应用程序。它是模糊的和非理想的,但比一个几乎看不见的UI更好!这种技术似乎也适用于任何应用程序。

Create an eclipse.exe.manifest file in the same folder as eclipse.exe and place the following XML within it:

创建一个eclipse.exe。清单文件与eclipse相同的文件夹。exe并将以下XML放入其中:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>

<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3">

<dependency>
  <dependentAssembly>
    <assemblyIdentity
      type="win32"
      name="Microsoft.Windows.Common-Controls"
      version="6.0.0.0" processorArchitecture="*"
      publicKeyToken="6595b64144ccf1df"
      language="*">
    </assemblyIdentity>
  </dependentAssembly>
</dependency>

<dependency>
  <dependentAssembly>
    <assemblyIdentity
      type="win32"
      name="Microsoft.VC90.CRT"
      version="9.0.21022.8"
      processorArchitecture="amd64"
      publicKeyToken="1fc8b3b9a1e18e3b">
    </assemblyIdentity>
  </dependentAssembly>
</dependency>

<trustInfo xmlns="urn:schemas-microsoft-com:asm.v3">
  <security>
    <requestedPrivileges>
      <requestedExecutionLevel
        level="asInvoker"
        uiAccess="false"/>
    </requestedPrivileges>
  </security>
</trustInfo>

<asmv3:application>
  <asmv3:windowsSettings xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">
    <ms_windowsSettings:dpiAware xmlns:ms_windowsSettings="http://schemas.microsoft.com/SMI/2005/WindowsSettings">false</ms_windowsSettings:dpiAware>
  </asmv3:windowsSettings>
</asmv3:application>

</assembly>

#6


7  

The best way is to edit the exe manifest with something like resource tuner and add

最好的方法是编辑exe清单,并添加一些类似于资源调整器的内容。

    <application xmlns="urn:schemas-microsoft-com:asm.v3"><windowsSettings><ms_windowsSettings:dpiAware xmlns:ms_windowsSettings="http://schemas.microsoft.com/SMI/2005/WindowsSettings" xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">false</ms_windowsSettings:dpiAware></windowsSettings></application>        

after dependency to set the exe as dpi unaware. This way the program will be a little pixelated but it will be in a confortable size.

依赖于将exe设置为dpi不知道。通过这种方式,程序将会像素化,但它将会是一个适合的大小。

#7


4  

-SurfacePro3-

-SurfacePro3 -

  • Download and unzip eclipse "32bit Version".
  • 下载和解压eclipse“32位版本”。
  • Run on "Windows XP mode".
  • 运行在“Windows XP模式”上。

#8


3  

The compatibility mode for Windows Xp, it's only available for the Eclipse 32 bit version and after running in this compatibility mode the icons and text will be the right size, but blurry because they are scaled from their native resolution to the screen resolution and doing so the quality is lost.

Windows Xp兼容模式,它只用于Eclipse 32位版本后,在这个兼容模式运行的图标和文本将正确的大小,但模糊,因为他们扩展从原始分辨率的屏幕分辨率,这样做失去质量。

#9


3  

I fixed @Sigh's solution by creating a (Linux) shellscript (.sh) to do something similar. This is very crude, brutal, and requires adoption for your specific system. Use at your own risk. It might break your entire installation. Make backups of the folders before you run this script. Script can be improved.

我通过创建一个(Linux) shell脚本(.sh)来执行类似的操作,从而修复了@叹号的解决方案。这是非常粗糙、残忍的,需要为您的特定系统采用。使用自己的风险。它可能会破坏你的整个安装。在运行此脚本之前,对文件夹进行备份。脚本可以改善。

#!/bin/bash

for J in *.jar
do
        echo "Copying $J..."
        mkdir -p "/tmp/$J"
        cp "$J" "/tmp/$J/"
        cd "/tmp/$J"

        echo "Extracting $J..."
        jar xf "$J"
        rm "$J"

        echo "Processing images..."
        find . -name "*.gif" -exec convert {} -resize 200% {} \;

        echo "Compressing $J..."
        if [ `ls .[^.]* 2>/dev/null | wc -l` = 0 ]
        then
                jar cf "$J" *
        else
                jar cf "$J" * .[!.]*
        fi
        cd -
        mv $J{,-bak}
        mv "/tmp/$J/$J" .
        rm -rf "/tmp/$J"

        echo "Done."
        echo ""
done

Run this in /opt/eclipse/plugins and ~/.eclipse/org.eclipse.platform_4.x.x/plugins (or whatever the paths for your installation are). Same issues as with @Sigh's solution: This is a brutal "fix" and breaks after every update or new installation.

在/opt/eclipse/插件和~/.eclipse/org.eclipse.platform_4.x上运行这个。x/插件(或任何安装的路径)。与@叹号的解决方案一样:这是一个残酷的“修复”,在每次更新或新的安装之后都会中断。

Script can be perfected:

脚本可以完善:

  • Ignore .jar files without /icons/ folder
  • 忽略.jar文件没有/图标/文件夹。
  • Only resize images that are 16x16 so you can run this again after every update/installation
  • 只调整16x16的图像大小,以便在每次更新/安装之后再次运行。

Requires imagemagick.

需要imagemagick。


Caveats

  • It doesn't work on all icons.
    • Does anyone know where the other assets are or why they aren't resized? Perhaps they are not .gif?
    • 有谁知道其他资产在哪里或者为什么没有调整大小?也许它们不是。gif?
  • 它对所有的图标都不起作用。有谁知道其他资产在哪里或者为什么没有调整大小?也许它们不是。gif?
  • Project Explorer icons are messed up.
  • Project Explorer图标混乱不堪。

Fixes are welcome!

修复是受欢迎的!

#10


3  

Best effortless solution is to go for Eclipse Neon. All bugs are fixed as a part of this release. https://bugs.eclipse.org/bugs/show_bug.cgi?id=421383

最佳的轻松解决方案是使用Eclipse霓虹灯。所有的bug都是这个版本的一部分。https://bugs.eclipse.org/bugs/show_bug.cgi?id=421383

#11


2  

Following solution worked for me

下面的解决方案对我起作用了。

First you need to add this registry key

首先,您需要添加这个注册表项。

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\SideBySide\PreferExternalManifest (DWORD) to 1

Next, a manifest file with the same name as the executable must be present in the same folder as the executable. The file is named eclipse.exe.manifest and consists of:

接下来,具有与可执行文件相同名称的清单文件必须与可执行文件在同一文件夹中。该文件名为eclipse.exe。清单,包括:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3">
    <description>eclipse</description>
    <trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
        <security>
            <requestedPrivileges>
                <requestedExecutionLevel xmlns:ms_asmv3="urn:schemas-microsoft-com:asm.v3"
                               level="asInvoker"
                               ms_asmv3:uiAccess="false">
                </requestedExecutionLevel>
            </requestedPrivileges>
        </security>
    </trustInfo>
    <asmv3:application>
        <asmv3:windowsSettings xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">
            <ms_windowsSettings:dpiAware xmlns:ms_windowsSettings="http://schemas.microsoft.com/SMI/2005/WindowsSettings">false</ms_windowsSettings:dpiAware>
        </asmv3:windowsSettings>
    </asmv3:application>
</assembly>

you can find more details here

你可以在这里找到更多的细节。

#12


2  

Have a look at Neon (4.6) M6 - New and Noteworthy, the milestone release contains some automatic scaling for images (e.g. for toolbar).

看看氖(4.6)M6 -新的和值得注意的,里程碑版本包含了一些图像的自动缩放(例如工具栏)。

SWT provides resolution-based auto-scaling

SWT提供分辨率的自动伸缩

SWT now automatically scales images on high-DPI monitors on Windows and Linux, similar to the Mac's Retina support on OS X. In the absence of high-resolution images, SWT will auto-scale the available images to ensure that SWT-based applications like Eclipse are scaled proportionately to the resolution of the monitor.

SWT现在可以在Windows和Linux上的高dpi显示器上自动缩放图像,类似于Mac在OS x上的视网膜支持。在缺乏高分辨率图像的情况下,SWT将自动缩放可用的图像,以确保像Eclipse这样的基于SWT的应用程序按比例按比例缩放到显示器的分辨率。

在Windows 8.1的高分辨率屏幕上,Eclipse界面图标非常小。

This feature can be disabled on Windows and GTK by setting this VM argument to false in eclipse.ini or on the command line after -vmargs:

可以在Windows和GTK上禁用此功能,在eclipse中设置这个VM参数为false。ini或命令行后-vmargs:

-Dswt.enable.autoScale=false

-Dswt.enable.autoScale = false

Auto-scaling cannot be disabled on the Mac as it is provided by the OS.

自动伸缩不能在Mac上禁用,因为它是由操作系统提供的。

Caveats: We're aware that some scaled images look bad at scale factors less than 200%. This will be improved in M7. Furthermore, we're working on support for high-DPI images in Platform UI, so that plug-in providers can add high-DPI icons without doing any code changes.

警告:我们意识到一些缩放的图像在规模小于200%的情况下看起来很糟糕。这将在M7中得到改进。此外,我们正在为平台UI中的高dpi图像提供支持,以便插件提供者可以在不做任何代码更改的情况下添加高dpi的图标。



Or maybe this helps, in Eclipse Mars API for high resolution was added

或者,在Eclipse Mars API中增加了高分辨率。

New APIs have been added to provide support for rendering high-resolution images on high-DPI monitors. Two constructors have been added to the Image class. They accept image-provider callbacks that allow clients to supply resolution-dependent versions of images:

添加了新的api,以支持在高dpi监视器上呈现高分辨率图像。在Image类中添加了两个构造函数。他们接受image-provider回调,允许客户端提供基于分辨率的图像版本:

public interface ImageDataProvider {
  public ImageData getImageData (int zoom);
}
public interface ImageFileNameProvider {
  public String getImagePath (int zoom);
}

Depending on the user's monitor configuration, SWT will request images with the corresponding zoom level. Here's an example that displays 3 original images, followed by variants whose resolution changes depending your monitor's resolution: Snippet367.java.

根据用户的监视器配置,SWT将请求具有相应缩放级别的图像。这里有一个显示3个原始图像的示例,然后是根据您的显示器的分辨率而变化的变体:Snippet367.java。

Note that this is just the first step to support high-resolution images in SWT and Eclipse-based applications. Work is underway to adopt the new APIs in the platform. Futhermore, more work in SWT is required to properly support drawing into high-resolution images via GC.

请注意,这只是在SWT和基于eclipse的应用程序中支持高分辨率图像的第一步。在平台上采用新的api的工作正在进行中。此外,还需要在SWT中进行更多的工作,以通过GC对高分辨率图像进行适当的支持。

APIs for high-DPI monitor support
http://help.eclipse.org/mars/index.jsp?topic=%2Forg.eclipse.platform.doc.isv%2FwhatsNew%2Fplatform_isv_whatsnew.html

用于高dpi监控的api支持http://help.eclipse.org/mars/index.jsp?

#13


1  

Thank you Sigh David Levy. I could not develop on Eclipse w/out your sol'n. I had to add a coupla catch (exceptions) to your code to get it to work:

感谢大卫·利维。我无法在Eclipse w/out上开发你的sol。我必须在代码中添加一个coupla catch(异常)来让它工作:

            while (srcEntries.hasMoreElements()) {
                    ZipEntry entry = (ZipEntry) srcEntries.nextElement();
                    logger.info("Processing zip entry ["+ entry.getName() + "]");

                    ZipEntry newEntry = new ZipEntry(entry.getName());


                    try { outStream.putNextEntry(newEntry); } 
                    ***catch (Exception e) { 
                        logger.error("error: ", e);
                        outStream.closeEntry();
                        continue;*
                    }**

#14


1  

There is a nice article in JaxEnter for an work around HiDPI for Eclipse

在JaxEnter中有一篇很好的文章介绍了关于Eclipse的HiDPI的工作。

#15


1  

What worked for me at the end was adding the manifest file to the javaw.exe just like Heikki Juntunen said at https://bugs.eclipse.org/bugs/show_bug.cgi?id=421383#c66

在最后为我工作的是向javaw添加清单文件。exe就像Heikki Juntunen说的,在https://bugs.eclipse.org/bugs/show_bug.cgi?id=421383#c66。

The instructions about how to edit the registry and create the manifest file where written by Matthew Cochrane at https://bugs.eclipse.org/bugs/show_bug.cgi?id=421383#c60 and @KItis wrote the instructions here

关于如何编辑注册表并创建清单文件的说明,由Matthew Cochrane在https://bugs.eclipse.org/bugs/show_bug.cgi?id=421383#c60和@KItis在这里写下了指令。

I put here a copy of that post:

我在这里放了一份这篇文章的副本:


First you need to add this registry key

首先,您需要添加这个注册表项。

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\SideBySide\PreferExternalManifest (DWORD) to 1

Next, a manifest file with the same name as the executable must be present in the same folder as the executable. The file is named eclipse.exe.manifest and consists of:

接下来,具有与可执行文件相同名称的清单文件必须与可执行文件在同一文件夹中。该文件名为eclipse.exe。清单,包括:

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0" xmlns:asmv3="urn:schemas-microsoft-com:asm.v3">
    <description>eclipse</description>
    <trustInfo xmlns="urn:schemas-microsoft-com:asm.v2">
        <security>
            <requestedPrivileges>
                <requestedExecutionLevel xmlns:ms_asmv3="urn:schemas-microsoft-com:asm.v3"
                               level="asInvoker"
                               ms_asmv3:uiAccess="false">
                </requestedExecutionLevel>
            </requestedPrivileges>
        </security>
    </trustInfo>
    <asmv3:application>
        <asmv3:windowsSettings xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">
            <ms_windowsSettings:dpiAware xmlns:ms_windowsSettings="http://schemas.microsoft.com/SMI/2005/WindowsSettings">false</ms_windowsSettings:dpiAware>
        </asmv3:windowsSettings>
    </asmv3:application>
</assembly>

#16


0  

Here is my solution Inspired by @Sigh's solution (this one doesn't use maven):

下面是我的解决方案,灵感来自于@叹号的解决方案(这个方法不使用maven):

https://github.com/gitAmrit/EclipseIconEnlarger/tree/master#eclipseiconenlarger

https://github.com/gitAmrit/EclipseIconEnlarger/tree/master eclipseiconenlarger

This works by searching for all images smaller or equal to 16x16px and scaling them up by whatever factor the user wants.

通过搜索所有小于或等于16x16px的图像,并按用户需要的任何因素进行扩展。

running the utility: java images.EclipseIconEnlarger eclipseBasePath magnificaitonfactor

运行工具:java映像。EclipseIconEnlarger eclipseBasePath magnificaitonfactor

eg: java images.EclipseIconEnlarger C:\Users\Amrit\Codes\eclipse 2

如:java映像。EclipseIconEnlarger C:\Users\Amrit\Codes\eclipse 2

eclipseBasePath = path where eclipse.exe is located, for e.g. C:\Users\Amrit\Codes\eclipse magnificationfactor = factor by which the image should be enlarged, for e.g. 2 = double

eclipsesebasepath =路径,eclipse。exe位于,例如C:\Users\Amrit\Codes\eclipse magnificationfactor =因素的形象应该扩大,例如2 =双

#17


0  

Here's another command line solution, but this works for Windows.

这是另一个命令行解决方案,但它适用于Windows。

It requires winrar installed (edit the set winrar line to point to the winrar installation).

它需要安装winrar(编辑设置winrar行来指向winrar安装)。

It also requires imagemagick to be installed and its path to be added in your commandline.

它还需要安装imagemagick并将其路径添加到命令行中。

One last comment is I recommend running this before opening Eclipse for the first time (ie, fresh install). There are icons that get automatically unpacked from jars and saved in eclipse/configuration/org.eclips.osgi/... (potentially among other folders) and editing the .jar file prevents the icon from being resized. You might be able to delete this folder and it might autoextract again, but I can't confirm.

最后一个建议是,我建议在第一次打开Eclipse之前运行它(即,重新安装)。有一些图标可以从jar中自动打开,并保存在eclipse/configuration/org. eclipse中。(可能在其他文件夹中)并编辑.jar文件,防止图标被调整大小。您可能可以删除这个文件夹,它可能再次自动提取,但我无法确认。

To run, just create a doubler.bat file in your eclipse/plugins directory and it should resize any icon smaller than 32x32 to that proportioned size.

要运行,只需创建一个doubler。在您的eclipse/plugins目录中的bat文件,它应该将任何小于32x32的图标调整成比例大小。

Here's the code:

这是代码:

@echo off
set winrar="C:\Program Files\WinRAR\winrar.exe"
set startpath=%~dp0

::All *.jar in this folder
FOR %%G in (*.jar) do (call :EachJar "%%G")

GOTO :eof

:EachJar
  ::echo %1
  set nameWOQuotes=%~1
  mkdir "tmp\%nameWOQuotes%"
  ::copy "%nameWOQuotes%" "tmp\%nameWOQuotes%.bak" >NUL
  %winrar% x -inul "%nameWOQuotes%" *.jpg *.gif *.png *.tif *.tiff "tmp\%nameWOQuotes%\"
  ::pause
  cd "tmp\%nameWOQuotes%"
  FOR /R .\ %%H in (*.jpg *.gif *.png *.tif *.tiff) do ( 
    ::echo %nameWOQuotes%-%%~nxH >> "%startpath%\output.txt"
    identify "%%H" >> "%startpath%\output.txt"
   convert "%%H" -resize 32x32^< "%%H" )
  %winrar% a -r -u "%startpath%\%nameWOQuotes%" "*"
  cd "%startpath%"
  rmdir /s /q "tmp\%nameWOQuotes%"
Goto :eof

It creates a file output.txt and inserts all the ORIGINAL images metadata before it is converted, regardless of whether or not it changed size.

它创建一个文件输出。txt在转换前插入所有原始图像元数据,不管它是否改变大小。

#18


0  

If you do not want to install a newer version of eclipse

如果您不想安装更新版本的eclipse。

As mentioned here, in the eclipse.init file add -Dswt.autoScale=exact after the -vmargs and you are good to go.

正如这里提到的,在eclipse中。init文件添加-Dswt。autoScale=后面的-vmargs,你很好。

Here exact scales the icons to the native zoom. But you will have to adjust with the blurred and jagged icons.

这里精确地将图标缩放到本机缩放。但你将不得不适应模糊和锯齿状的图标。

#19


0  

I had this problem when I changed my default Windows 10 language from Eng to Italian, with Eclipse being installed when default language was Eng. Reverting Windows language to Eng and rebooting solved the problem. I don’t know what’s happened, Windows rename some folders like C:\Users translating it in your default language (i.e. C:\Utenti) and maybe this is causing problems.

当我将默认的Windows 10语言从Eng改为意大利语时,我遇到了这个问题,默认语言是Eng时,Eclipse就被安装了。将Windows语言恢复到Eng并重新启动解决了这个问题。我不知道发生了什么,Windows文件夹重命名一些像C:\Users翻译在你的默认语言(例如C:\ Utenti),也许这就是导致问题。

#20


-1  

Jae's above solution worked for me. The manifest solution didn't work for me. Thanks Jae.

Jae的上述解决方案对我有效。明显的解决方案对我不起作用。谢谢Jae。

Setup:On my windows 8.1 64 bit non tablet laptop I downloaded eclipse 64 bit with jdk 64 bit.

安装:在我的windows 8.1 64位非平板电脑上,我用jdk 64位下载了eclipse 64位。

  1. Right mouse click on desktop to access screen resolution and lowered the screen resolution display from 3000 level to 2048 x 1152.
  2. 鼠标右键点击桌面来访问屏幕分辨率,并将屏幕分辨率从3000级降低到2048x1152。
  3. Click on make text and other items larger or smaller link and changed it to large 150% instead of extra extra large - 250%.
  4. 点击使文本和其他条目更大或更小的链接,并将其改为大150%而不是额外的大- 250%。
  5. Logged out and Logged back in.
  6. 注销并重新登录。
  7. Restart Eclipse and the icons are now visible even if it is a bit smaller, but much more legible now.
  8. 重新启动Eclipse,图标现在可以看到,即使它稍微小一些,但现在更清晰了。