* @param prj
* Project which class path must be resolved
*/
protected void resolveClasspath(IJavaProject prj) {
if(prj!=null) {
IModelService mdH = getLatestModelServiceBuilt();
if(mdH!=null) {
try {
IPackageFragment[] packs =
prj.getPackageFragments();
IPackageFragment pack = null;
IClassFile[] classFiles = null;
IClassFile classFile = null;
IType type = null;
String classFullName = null;
if(packs!=null) {
for(int i=0 ; i<packs.length ; i++) {
pack = packs[i];
if(
(pack!=null)
&&(
!(
pack.getKind()
==IPackageFragmentRoot
.K_SOURCE
)
)
) {
classFiles = pack.getClassFiles();
if(classFiles!=null) {
for(int j=0 ; j<classFiles.length ; j++) {
classFile = classFiles[j];
if(classFile!=null) {
type = classFile.getType();
if(type!=null) {
classFullName =
ClassifierService
.buildFullyQualifiedName(
type
);
mdH.resolveTypeService(
classFullName
);
}
}
}