我创建了Wizard
,然后我创建了WizardPage
即FrontPage
并将其添加到向导的向导addPage
方法中。动态添加wizardPages并返回结果
由于我在addPage
方法中只有一个页面,因此Next按钮不显示。我希望它被显示。
在FrontPage
的nextPressed
方法中,我创建了另一个java类的实例,该类运行用另一种语言编写的程序。在该程序的几个方面,我需要动态创建wizardPage。为此,我创建了一个Java类来为该程序做出贡献。该类即interfaceRule
在其他插件中创建wizardPage的实例。
我的问题是如何将这个wizardPages添加到主向导?而且我怎样才能将用户在wizardPage中选择的值返回到interfaceRule
类?
编辑:
public IWizardPage getNextPage() {
boolean isNextPressed = "nextPressed".equalsIgnoreCase(Thread.currentThread().getStackTrace()[2].getMethodName());
if (isNextPressed) {
boolean validatedNextPress = this.nextPressed();
if (!validatedNextPress) {
return this;
}
}
return super.getNextPage();
}
请不要在单个问题中提出多个问题。 –