在max os 中让eclipse支持Retina display

右键eclipse.app显示包内容

找到Info.plist,然后按规则添加

<key>NSHighResolutionCapable</key>
<true/>

重新打开eclipse.app


经过测试,好像只支持3.8以上的eclipse,3.7没有作用。


以下是我添加的文件
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">

<dict>
	<key>CFBundleExecutable</key>
		<string>eclipse</string>
	<key>CFBundleGetInfoString</key>
		<string>Eclipse 3.8 for Mac OS X, Copyright IBM Corp. and others 2002, 2011. All rights reserved.</string>
	<key>CFBundleIconFile</key>
		<string>Eclipse.icns</string>
	<key>CFBundleIdentifier</key>
		<string>org.eclipse.eclipse</string>
	<key>CFBundleInfoDictionaryVersion</key>
		<string>6.0</string>
	<key>CFBundleName</key>
		<string>Eclipse</string>
	<key>CFBundlePackageType</key>
		<string>APPL</string>
	<key>CFBundleShortVersionString</key>
		<string>3.8</string>
	<key>CFBundleSignature</key>
		<string>????</string>
	<key>CFBundleVersion</key>
		<string>3.8</string>
	<key>CFBundleDevelopmentRegion</key>
		<string>English</string>
	<key>NSHighResolutionCapable</key>
        <true/>
	<key>CFBundleLocalizations</key>
		<array>
			<string>ar</string>
			<string>cs</string>
			<string>da</string>
			<string>el</string>
			<string>en</string>
			<string>es</string>
			<string>de</string>
			<string>fi</string>
			<string>fr</string>
			<string>hu</string>
			<string>it</string>
			<string>iw</string>
			<string>ja</string>
			<string>ko</string>
			<string>nl</string>
			<string>no</string>
			<string>pl</string>
			<string>pt_BR</string>
			<string>pt</string>
			<string>ru</string>
			<string>sv</string>
			<string>tr</string>
			<string>zh_HK</string>
			<string>zh_TW</string>
			<string>zh</string>
		</array>
		
	<key>Eclipse</key>
		<array>
			<!-- to use a specific Java version (instead of the platform's default) uncomment one of the following options:
				<string>-vm</string><string>/System/Library/Frameworks/JavaVM.framework/Versions/1.4.2/Commands/java</string>
				<string>-vm</string><string>/System/Library/Frameworks/JavaVM.framework/Versions/1.5.0/Commands/java</string>
			-->
			<string>-keyring</string><string>~/.eclipse_keyring</string>
			<string>-showlocation</string>
			<!-- WARNING:
				If you try to add a single VM argument (-vmargs) here,
				*all* vmargs specified in eclipse.ini will be ignored.
				We recommend to add all arguments in eclipse.ini
			 -->
		</array>
</dict>

</plist>


评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值