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