for (EventSetDescriptor esd : esds) {
MenuManager subEventMenu = new MenuManager(esd.getName(),
"#ADD_EVENT_" + esd.getName()); //$NON-NLS-1$
MethodDescriptor[] eds = esd.getListenerMethodDescriptors();
for (MethodDescriptor md : eds) {
subEventMenu.add(new AddEventAction(adaptable, esd, md));
}
eventMenu.add(subEventMenu);
}
}