方法1:
重写创建按钮的方法createButtonFromButtonBar
方法2:
等待窗口open()后调用:
getButton(0).setText("确定");
getButton(1).setText("取消");
方法3:
国际化操作:
new Fragment Project;
Manifest-Version: 1.0
Bundle-ManifestVersion: 2
Bundle-Name: Fragement Fragment
Bundle-SymbolicName: org.eclipse.jface.fragement
Bundle-Version: 1.0.0
Fragment-Host: org.eclipse.jface;bundle-version="3.2.2"
Bundle-Localization: plugin
new org.eclipse.jface.fragment/src/org/eclipse/jface/messages_zh_CN.properties Files.
cancel = \u53D6\u6D88
ok = \u786E\u5B9A