Lines 1680-1692
Link Here
|
1680 |
return new JavaModelStatus(IJavaModelStatusConstants.INVALID_CLASSPATH, Messages.bind(Messages.classpath_unboundSourceAttachment, new String [] {sourceAttachment.toString(), path.toOSString(), projectName})); |
1680 |
return new JavaModelStatus(IJavaModelStatusConstants.INVALID_CLASSPATH, Messages.bind(Messages.classpath_unboundSourceAttachment, new String [] {sourceAttachment.toString(), path.toOSString(), projectName})); |
1681 |
} |
1681 |
} |
1682 |
} else { |
1682 |
} else { |
1683 |
boolean isExternal = path.getDevice() != null || !workspaceRoot.getProject(path.segment(0)).exists(); |
1683 |
// if it is not synchronized then do not set marker |
|
|
1684 |
if (workspaceRoot.isSynchronized(IResource.DEPTH_INFINITE)) { |
1685 |
boolean isExternal = path.getDevice() != null |
1686 |
|| !workspaceRoot.getProject(path.segment(0)) |
1687 |
.exists(); |
1684 |
if (isExternal) { |
1688 |
if (isExternal) { |
1685 |
return new JavaModelStatus(IJavaModelStatusConstants.INVALID_CLASSPATH, Messages.bind(Messages.classpath_unboundLibrary, new String[] {path.toOSString(), projectName})); |
1689 |
return new JavaModelStatus( |
|
|
1690 |
IJavaModelStatusConstants.INVALID_CLASSPATH, |
1691 |
Messages.bind( |
1692 |
Messages.classpath_unboundLibrary, |
1693 |
new String[] { path.toOSString(), |
1694 |
projectName })); |
1686 |
} else { |
1695 |
} else { |
1687 |
return new JavaModelStatus(IJavaModelStatusConstants.INVALID_CLASSPATH, Messages.bind(Messages.classpath_unboundLibrary, new String[] {entryPathMsg, projectName})); |
1696 |
return new JavaModelStatus( |
|
|
1697 |
IJavaModelStatusConstants.INVALID_CLASSPATH, |
1698 |
Messages.bind( |
1699 |
Messages.classpath_unboundLibrary, |
1700 |
new String[] { entryPathMsg, |
1701 |
projectName })); |
1688 |
} |
1702 |
} |
1689 |
} |
1703 |
} |
|
|
1704 |
} |
1690 |
} else { |
1705 |
} else { |
1691 |
return new JavaModelStatus(IJavaModelStatusConstants.INVALID_CLASSPATH, Messages.bind(Messages.classpath_illegalLibraryPath, new String[] {entryPathMsg, projectName})); |
1706 |
return new JavaModelStatus(IJavaModelStatusConstants.INVALID_CLASSPATH, Messages.bind(Messages.classpath_illegalLibraryPath, new String[] {entryPathMsg, projectName})); |
1692 |
} |
1707 |
} |