本文介绍了如何更改org.eclipse.jface.wizard.Wizard中按钮的文本的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将org.eclipse.jface.wizard.Wizard中的按钮文本更改为按钮栏中的阿拉伯语吗?我的意思是我想将标签下一步"按钮更改为بعدی".

I want to change text of button in org.eclipse.jface.wizard.Wizard to arabic in button bar?I mean I wanna change label "Next" button to "بعدی".

推荐答案

Wizard标签的语言由JFace处理,并使用您操作系统的区域设置.这意味着,如果您将机器设置为英语(英国)",则将看到英语的标签;如果将其设置为德国",则将看到德语的标签,等等.

The language of the Wizard's labels is handled by JFace and uses your OS's region settings. That means if you're machine is set to "English (UK)" you will see the labels in English, if it's set to "Germany" you'll see them in German, etc.

这里有相关问题:

  • JFace dialog button translation
  • How to set custom text on buttons in JFace Wizard (Java)

更新:

如果使用的是WizardDialog,则可以覆盖方法 createButtonsForButtonBar(Composite parent) 就像完成了此处.

If you're using a WizardDialog you can override the method createButtonsForButtonBar(Composite parent) like it's done here.

这篇关于如何更改org.eclipse.jface.wizard.Wizard中按钮的文本的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

09-25 22:18