gpt4 book ai didi

java - 在 SWT FormEditor 的表单页面(选项卡)之间切换

转载 作者:行者123 更新时间:2023-12-02 02:18:38 27 4
gpt4 key购买 nike

我正在开发一个插件项目,其中我们将 SWT FormEditor 与不同的 FormPage 一起使用。第一个 FormPage 选项卡将充当摘要页面,我们需要从这里导航到不同的其他 FormPage。我确实对此进行了搜索,但没有可用的有用资源,因此请指导我如何在 SWT FormEditor 的不同表单页面之间切换。期待您的快速回复并表示感谢。

最佳答案

注意:FormEditorFormPage 是 Eclipse 表单而不是 SWT。

FormEditor 有几个可以调用的 setActivePage 方法:

public IFormPage setActivePage(String pageId)

Sets the active page using the unique page identifier.

public IFormPage setActivePage(String pageId, Object pageInput)

Sets the active page using the unique page identifier and sets its input to the provided object.

protected void setActivePage(int pageIndex)

Sets the currently active page.

关于java - 在 SWT FormEditor 的表单页面(选项卡)之间切换,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48883081/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com