Eclipse JFace's Wizards

前端 未结 4 1668
梦如初夏
梦如初夏 2020-12-15 23:52

I need a wizard which second page content depends on the first page\'s selection. The first page asks the user the \"kind\" of filter he wants to create and the second one a

4条回答
  •  别那么骄傲
    2020-12-16 00:11

    I have a different solution.

    If page depends on the result of page 1, create a variable and pass it into to first page, when that wizard page has the option from the user, then the last thing before the page is closed is to set the variable to the required value.

    Then pass this variable to wizard, then pass it to the next wizard page. Then do a simple if statement and that way you get both choices together.

    Remember that in most code there is only a small difference in the user options, so remember not to get bogged down in duplicating your code.

提交回复
热议问题