// Translate from VirtualFile to relative paths
VirtualFile root = structureContext.getRoot();
for (VirtualFile vf : paths)
{
String entryPath = getRelativePath(root, vf);
ClassPathEntry cpe = StructureMetaDataFactory.createClassPathEntry(entryPath);
context.addClassPathEntry(cpe);
if (trace)
log.trace("Added classpath entry " + entryPath + " for " + vf.getName() + " from " + root);
}
}