1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-11 11:05:24 +02:00

don't rename with new aboslute path if the name is correct

This commit is contained in:
David McKnight 2006-10-03 19:50:15 +00:00
parent 74251b6f18
commit 24eafa3895

View file

@ -305,8 +305,17 @@ public class DStoreHostFile implements IHostFile
} }
public void renameTo(String newAbsolutePath) public void renameTo(String newAbsolutePath)
{
String current = getName();
if (newAbsolutePath.endsWith(current))
{
// data element already updated
}
else
{ {
_element.setAttribute(DE.A_NAME, newAbsolutePath); _element.setAttribute(DE.A_NAME, newAbsolutePath);
}
_isArchive = internalIsArchive(); _isArchive = internalIsArchive();
} }