Reputation: 13
I am working on a Plugin project in which we are using SWT FormEditor
with different FormPage
s. The first FormPage tab will act as a summary page, from where we need to navigate to different other FormPage(s). I did search on that, but no helpful resource available, so please guide me on how to switch between different form pages of SWT FormEditor. Looking forward for your speedy response and thanks.
Upvotes: 0
Views: 154
Reputation: 111216
Note: FormEditor
and FormPage
are Eclipse Forms not SWT.
FormEditor
has several setActivePage
methods that you can call:
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.
Upvotes: 2