how can I change buttons's text in org.eclipse.jface.wizard.Wizard

*爱你&永不变心* 提交于 2019-12-25 03:55:24

问题


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 "بعدی".


回答1:


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.

There are related questions here:

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

Update:

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



来源:https://stackoverflow.com/questions/24614399/how-can-i-change-buttonss-text-in-org-eclipse-jface-wizard-wizard

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!