// Use separate sets of mnemonics for the wizard-types and non-wizard types.
// We can do this because those items will never show up together in the same
// menu - the wizard types are added to a Connect-submenu. This results in
// a more natural assignment of mnemonics within each group.
// For the non-wizard items we reserve 'C' for "Connect".
EntityTypeMnemonics normalItemsMnemonics = new EntityTypeMnemonics(nonWizardTypes(), 'C');
EntityTypeMnemonics wizardItemsMnemonics = new EntityTypeMnemonics(wizardTypes());
for (EntityType type : types()) {
EntityIcons icons = EntityIcons.forType(type);
String actionID = InterchangeActionFactory.getNewEntityFactory(type).getId();
EntityTypeMnemonics mnemonics = type.isWizardType() ? wizardItemsMnemonics : normalItemsMnemonics;
names.put(actionID, new NewEntityActionName(type, mnemonics));
smallIcons.put(actionID, icons.getIcon(Category.VALID, Size.SMALL));
mediumIcons.put(actionID, icons.getIcon(Category.VALID, Size.MEDIUM));
largeIcons.put(actionID, icons.getIcon(Category.VALID, Size.LARGE));
}