Lines 406-414
Link Here
|
406 |
throw new JavaModelException(e); |
406 |
throw new JavaModelException(e); |
407 |
} |
407 |
} |
408 |
} else { |
408 |
} else { |
|
|
409 |
IJavaProject[] projectsInCycle; |
410 |
String cycleString = ""; //$NON-NLS-1$ |
411 |
if (cycleParticipants.isEmpty()) { |
412 |
projectsInCycle = null; |
413 |
} else { |
414 |
projectsInCycle = new IJavaProject[cycleParticipants.size()]; |
415 |
Iterator it = cycleParticipants.iterator(); |
416 |
int k = 0; |
417 |
while (it.hasNext()) { |
418 |
//projectsInCycle[i++] = (IPath) it.next(); |
419 |
IResource member = workspaceRoot.findMember((IPath) it.next()); |
420 |
if (member != null && member.getType() == IResource.PROJECT){ |
421 |
projectsInCycle[k] = JavaCore.create((IProject)member); |
422 |
if (projectsInCycle[k] != null) { |
423 |
if (k != 0) cycleString += ", "; //$NON-NLS-1$ |
424 |
cycleString += projectsInCycle[k++].getElementName(); |
425 |
} |
426 |
} |
427 |
} |
428 |
} |
409 |
// create new marker |
429 |
// create new marker |
410 |
project.createClasspathProblemMarker( |
430 |
project.createClasspathProblemMarker( |
411 |
new JavaModelStatus(IJavaModelStatusConstants.CLASSPATH_CYCLE, project)); |
431 |
new JavaModelStatus(IJavaModelStatusConstants.CLASSPATH_CYCLE, project, cycleString)); |
412 |
} |
432 |
} |
413 |
} else { |
433 |
} else { |
414 |
project.flushClasspathProblemMarkers(true, false); |
434 |
project.flushClasspathProblemMarkers(true, false); |