1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-04 15:45:25 +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

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