英文:
How to open a complete preferences dialog via custom button?
问题
我正在为自定义的IWorkingSets
实现一个配置对话框。这些集合包括所选项目,还有两个额外的配置,它们有各自的属性页面。我已经成功实现了这些工作集的属性对话框,可以在Project Explorer
中右键单击它们,然后选择Properties
,但现在我想通过我的自定义配置对话框中的一个按钮打开那个PropertyDialog
。
我尝试使用了PropertyDialog
,但该对话框不是API。是否有其他方法以编程方式打开属性对话框呢?
英文:
I'm implementing a configuration dialog for custom IWorkingSets
. These sets consist of selected projects but also two additional configurations, which have their own properties pages. I've already managed to implement a functioning properties dialog for these working sets, which can be found by right-clicking them and selecting Properties
in the Project Explorer
, but now I'd like to open that PropertyDialog
via a button in my custom configuration dialog.
I've tried to use PropertyDialog
, but that dialog is not API. Is there another way to open the properties dialog programmatically?
答案1
得分: 2
org.eclipse.ui.dialogs.PreferencesUtil
提供了三个 createPropertyDialogOn
方法的属性对话框的官方API。
英文:
org.eclipse.ui.dialogs.PreferencesUtil
provides an official API for the property dialog with three createPropertyDialogOn
methods.
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论