<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[linuxの飘扬]]></title> 
<link>https://www.linuxfly.org/index.php</link> 
<description><![CDATA[Power by www.linuxfly.org]]></description> 
<language>zh-cn</language> 
<copyright><![CDATA[linuxの飘扬]]></copyright>
<item>
<link>https://www.linuxfly.org/post//</link>
<title><![CDATA[[原]Eclipse 3.6.2 JFace 对话框显示中文]]></title> 
<author>linuxing &lt;emos#linuxfly.org&gt;</author>
<category><![CDATA[Java]]></category>
<pubDate>Thu, 24 Mar 2011 09:57:01 +0000</pubDate> 
<guid>https://www.linuxfly.org/post//</guid> 
<description>
<![CDATA[ 
	&nbsp;&nbsp;&nbsp;&nbsp;JFace中的对话框是通过SWT中的Shell 窗口封装来的，调用的是SWT中的button控件对象，查看MessageDialog类的源代码可以发现设置按钮文字是通过字符常量来设定的，默认为英文。若要显示中文提示，需加入中文语言包。<br/>&nbsp;&nbsp;&nbsp;&nbsp;在《Eclipse从入门到精通》（第二版）中，是以Eclipse 3.2.1版本进行说明的。但从Eclipse官网上看，似乎语言包也只支持到3.2，后续就没有更新了。幸亏我不需汉化整个Eclipse，而今需让JFace 的对话框显示中文提示即可。<br/>............<br/><br/>Tags - <a href="https://www.linuxfly.org/tags/java/" rel="tag">java</a> , <a href="https://www.linuxfly.org/tags/jface/" rel="tag">jface</a>
]]>
</description>
</item><item>
<link>https://www.linuxfly.org/post//#blogcomment</link>
<title><![CDATA[[评论] [原]Eclipse 3.6.2 JFace 对话框显示中文]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[评论]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>https://www.linuxfly.org/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>