mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-11 02:55:23 +02:00
don't rename with new aboslute path if the name is correct
This commit is contained in:
parent
74251b6f18
commit
24eafa3895
1 changed files with 10 additions and 1 deletions
|
@ -306,7 +306,16 @@ public class DStoreHostFile implements IHostFile
|
||||||
|
|
||||||
public void renameTo(String newAbsolutePath)
|
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();
|
_isArchive = internalIsArchive();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue