/** * Create and add the unique page to the wizard * * @see org.eclipse.jface.wizard.Wizard#addPages() */ public void addPages() { String description = Messages.CreateNattableFromCatalogWizard_0; page = new ChooseNattableConfigWizardPage(description, context); page.setTitle(Messages.CreateNattableFromCatalogWizard_1); page.setDescription(description); addPage(page); }
/** * Enables the finish button when there's at least one selected configuration * * @see org.eclipse.jface.wizard.Wizard#performFinish() * @return */ public boolean performFinish() { this.selectedConfigs = page.getSelectedConfigs(); this.tableNames = page.getTableNames(); if (this.selectedConfigs != null && this.tableNames != null) { if (this.selectedConfigs.size() > 0) { return true; } } return false; }