WizardDescriptor.Panel targetChooser =
0 == groups.length ?
Templates.createSimpleTargetChooser(
project,
groups,
new ActionBeanWizardPanel(wizard)) :
JavaTemplates.createPackageChooser(
project,
groups,
new ActionBeanWizardPanel(wizard),
true);
panels = new WizardDescriptor.Panel[]{targetChooser};