while (itProject.hasNext()) {
Entry entry = (Entry) itProject.next();
IProject project = (IProject) entry.getKey();
Iterator itSetup = ((Set) entry.getValue()).iterator();
while (itSetup.hasNext()) {
StandaloneRetrieveSetup retrieveSetup = (StandaloneRetrieveSetup) itSetup
.next();
RetrieveAction action = new RetrieveAction(retrieveSetup);
action.setText("Retrieve '" + retrieveSetup.getName()
+ (oneProject ? "'" : "' of " + project.getName()));
fillMenu(menuManager, items, new ActionContributionItem(action));
}
}
fillMenu(menuManager, items, new IvyMenuSeparator());