如何设置在JFace的向导按钮自定义文本(JAVA) [英] How to set custom text on buttons in JFace Wizard (Java)

查看:144
本文介绍了如何设置在JFace的向导按钮自定义文本(JAVA)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用JFace的向导,我想设置按钮,我自己的文本接下来,返回,完成和取消。我发现只有很老的意见,这是完全无用的今天。我也发现了与外部的jar文件一些解决,但我真的不希望只对4个按钮...

I am using JFace Wizard and I want to set my own text on buttons Next, Back, Finish and Cancel. I found only very old advices which are completely useless today. I also found some solution with external jar files, but I really don't want to add whole library to project only for setting text on 4 buttons...

有没有合理的解决办法?

Is there any reasonable solution?

在此先感谢

推荐答案

大规模的调查,并试图后,我不得不说,有没有这样的办法。有一些残酷的解决方案,但与他们相比,增加一个jar文件到项目更容易和漂亮。

After massive finding and trying, I have to say there is no such way. There are some brutal solutions, but compared with them, adding one jar file to project is much easier and nicer.

我举最有效的解决方案对我来说:

I will cite best working solution for me:

您需要从这里下载语言包:

You need to download a language pack from here:

<一个href=\"http://archive.eclipse.org/eclipse/downloads/drops/L-3.2.1_Language_Packs-200609210945/index.php\" rel=\"nofollow\">http://archive.eclipse.org/eclipse/downloads/drops/L-3.2.1_Language_Packs-200609210945/index.php

NLpack2-eclipse-SDK-3.2.1-gtk.z​​ip为我工作,而我使用Eclipse
  3.7.2。

NLpack2-eclipse-SDK-3.2.1-gtk.zip works for me while I'm using Eclipse 3.7.2.

提取org.eclipse.jface.nl2_3.2.1.v200609270227.jar(或其他为NL
  从归档你的语言),并把它添加到您的项目。这将是
  自动使用。

Extract org.eclipse.jface.nl2_3.2.1.v200609270227.jar (or other nl for your language) from the archive and add it to your project. It will be used automatically.

这不是让你来设置按钮的文本,但至少让你的文本翻译成你的语言。

This do not let you to set texts on buttons, but at least gives you texts translated into your language.

这篇关于如何设置在JFace的向导按钮自定义文本(JAVA)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆