if (DLTKCore.DEBUG) {
e.printStackTrace();
}
}
if (install != null) {
PackagesManager manager = PackagesManager.getInstance();
IPath[] paths = manager.getPathsForPackage(install, pkgName);
if (paths != null && paths.length > 0) {
return true;
}
Map dependencies = manager.getDependencies(pkgName, install);
for (Iterator iterator = dependencies.keySet().iterator(); iterator.hasNext();) {
String pkg = (String) iterator.next();
IPath[] paths2 = manager.getPathsForPackage(install, pkg);
if (paths2 != null && paths2.length > 0) {
return true;
}
}
}