Lines 951-957
Link Here
|
951 |
if (newLinks != null) |
951 |
if (newLinks != null) |
952 |
newLink = (LinkDescription) newLinks.get(oldLink.getProjectRelativePath()); |
952 |
newLink = (LinkDescription) newLinks.get(oldLink.getProjectRelativePath()); |
953 |
//if the new link is missing, or has different location or gender, then remove old link |
953 |
//if the new link is missing, or has different location or gender, then remove old link |
954 |
if (newLink == null || !newLink.getLocationURI().equals(oldLinkResource.getLocationURI()) || newLink.getType() != oldLinkResource.getType()) { |
954 |
if (newLink == null || !newLink.getLocationURI().equals(oldLinkResource.getRawLocationURI()) || newLink.getType() != oldLinkResource.getType()) { |
955 |
try { |
955 |
try { |
956 |
oldLinkResource.delete(IResource.NONE, null); |
956 |
oldLinkResource.delete(IResource.NONE, null); |
957 |
//refresh the resource, because removing a link can reveal a previously hidden resource in parent |
957 |
//refresh the resource, because removing a link can reveal a previously hidden resource in parent |