ImageIcon icon = (ImageIcon) ItemIconMgr.getInstance().getIcon(item.getItemType(), FlexibleSize.HUGE);
wizard.setDefaultWizardImage(icon);
// Create the selection page displaying all available
// generators and add it to the wizard
WizardSelectionPage selectionPage = new WizardSelectionPage(wizard);
int n = list.size();
for (int i = 0; i < n; ++i)
{
Generator generator = (Generator) list.get(i);
selectionPage.addGenerator(generator);
}
selectionPage.expandTree();
wizard.addAndLinkPage(GeneratorWizard.SELECTION_PAGE, selectionPage);
// The following page(s) will be added by this page dynamically if needed
wizard.displayFirst();