// Let's try to be nice and use the workspace method to schedule resolves in
// dependent projects after the close operation has finished.
IResourceRuleFactory ruleFactory = ResourcesPlugin.getWorkspace().getRuleFactory();
ISchedulingRule modifyRule = ruleFactory.modifyRule(javaProject.getCorrespondingResource());
List affectedContainers = getAffectedContainers(javaProject.getPath());
IvyMultiResolveJob multiResolveJob = new IvyMultiResolveJob(affectedContainers);
multiResolveJob.setRule(modifyRule);
multiResolveJob.schedule();
}