for (ICompilationUnit dependency : dependencies)
{
if (dependency.getCompilationUnitType() != UnitType.SWC_UNIT)
continue;
ISWC swc = flexProject.getWorkspace().getSWCManager().get(
new File(dependency.getAbsoluteFilename()));
int flexMinSupportedVersion = swc.getVersion().getFlexMinSupportedVersionInt();
if (compatibilityVersion.intValue() < flexMinSupportedVersion)
{
problems.add(new DependencyNotCompatibleProblem(dependency.getQualifiedNames().get(0),
dependency.getAbsoluteFilename(),
swc.getVersion().getFlexMinSupportedVersion(),
flexProject.getCompatibilityVersionString()));
}
}
}