Bug 533470 - Can we add functionality to remove WizardPage from a Jface Wizard
Summary: Can we add functionality to remove WizardPage from a Jface Wizard
Status: RESOLVED WORKSFORME
Alias: None
Product: Platform
Classification: Eclipse Project
Component: UI (show other bugs)
Version: 4.8   Edit
Hardware: PC All
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: Platform-UI-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: ui
Depends on:
Blocks:
 
Reported: 2018-04-11 09:56 EDT by Aditya Aswani CLA
Modified: 2018-04-11 10:45 EDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Aditya Aswani CLA 2018-04-11 09:56:00 EDT
Scenario: I need to add 4 pages to the wizard by default.
But on 2nd page I need to give a checkbox to the user, which if ticked, should remove the next 2 pages from the wizard and a different set of pages to it.

In present scenario I can add a page but do not see any option provided by the wizard to remove a particular page.

If the use case is valid, I can try to contribute to this requirement.
Comment 1 Aditya Aswani CLA 2018-04-11 09:57:52 EDT
and add* a different set of pages to it
Comment 2 Lars Vogel CLA 2018-04-11 10:09:27 EDT
You can already control the flow of pages. See http://www.vogella.com/tutorials/EclipseWizards/article.html#changing-the-page-order
Comment 3 Aditya Aswani CLA 2018-04-11 10:22:25 EDT
Sorry I was not precise about the scenario.

In the shared example, the WizardPage(s) are added at the start.

Detailed Scenario:
I need to add 4 pages to the wizard by default.
But on 2nd page I need to give a drop down to the user. The drop down items will be contributed by the extensions.
Based on the selection, 3rd and 4th page needs to be removed and different set of pages need to be added, which are also contributed by the extensions.

There can be many extensions which provide the item for drop down and corresponding WizardPage implementations which need to be added to the wizard when the drop down selection is set.

We cannot create all the possible pages from different extensions and add them to the wizard first and reorder them based on drop down selection, since there can be many extensions.