gembin

OSGi, Eclipse Equinox, ECF, Virgo, Gemini, Apache Felix, Karaf, Aires, Camel, Eclipse RCP

HBase, Hadoop, ZooKeeper, Cassandra

Flex4, AS3, Swiz framework, GraniteDS, BlazeDS etc.

There is nothing that software can't fix. Unfortunately, there is also nothing that software can't completely fuck up. That gap is called talent.

About Me

 

如何使 Eclipse(SWT 程序)能够使用 XP 系统外观?

 

Eclipse_Turn_On_XP_Skin.txt

如何使 Eclipse(SWT 程序)能够使用 XP 系统外观?

Q: How do I make SWT show the Windows XP skins?
A: In order for an application to show the Windows XP skins, there must be a manifest file located in the same place as the executable that launches the application. Here is a sample manifest file to download.
The name of the manifest file must match the name of the executable. In the case of eclipse, the executable is javaw.exe and the manifest file must have the name javaw.exe.manifest. The manifest file must be in the jre\bin folder for the VM you use to launch Eclipse. Note: the eclipse.exe executable does not launch Eclipse; eclipse.exe displays a splash screen and then invokes the Java VM.

http://www.eclipse.org/swt/javaw.exe.manifest

或者下载这个:

javaw.exe.manifest.rar 1KB

在 Windows XP 系统下, 一般我们用的 Eclipse 的按钮就是像 Windows 2000 下面那样的方块按钮, 不能使用 XP 的系统外观主题, 如何让 Eclipse 也能显示现代的 XP 外观呢, 例如有的用户喜欢的苹果桌面主题呢?
长话短说就是放这个链接所指的文件 javaw.exe.manifest 到 javaw.exe 所在的目录下, 具体可能位置为:
c:\windows\system32\ (如果你安装的时候选择了 JRE, 这里将有一个 java.exe 和 javaw.exe);
c:\Program Files\Java\JRE1.xxx\bin\ (同上);
c:\jdk1.4.2\jre\bin\ (只安装了 JDK).
已经测试过了, Eclipse 3.0.1, Eclipse 3.1, Eclipse 3.2, 都可以显示最新的系统外观了.

同样的技术, 只要重命名 javaw.exe.manifest 到其它文件名, 例如 myexe.exe.manifest, 就能使一些原来不能显示 XP 外观的老式程序显示新的 XP 外观了. 目前实验成功的有: TurboLaunch, Gel 等.

参考资料: http://www.eclipse.org/swt/faq.php (SWT FAQ)

 

posted on 2007-10-10 13:50 gembin 阅读(386) 评论(0)  编辑  收藏


只有注册用户登录后才能发表评论。


网站导航:
 

导航

统计

常用链接

留言簿(6)

随笔分类(440)

随笔档案(378)

文章档案(6)

新闻档案(1)

相册

收藏夹(9)

Adobe

Android

AS3

Blog-Links

Build

Design Pattern

Eclipse

Favorite Links

Flickr

Game Dev

HBase

Identity Management

IT resources

JEE

Language

OpenID

OSGi

SOA

Version Control

最新随笔

搜索

积分与排名

最新评论

阅读排行榜

评论排行榜

free counters