mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-21 15:23:59 +02:00
fix for dstore rename (where name shows as full path)
This commit is contained in:
parent
1ad79089c0
commit
deaf8a489b
1 changed files with 7 additions and 1 deletions
|
@ -315,7 +315,13 @@ public class DStoreHostFile implements IHostFile
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
_element.setAttribute(DE.A_NAME, newAbsolutePath);
|
int lastSep = newAbsolutePath.lastIndexOf('/');
|
||||||
|
if (lastSep == -1)
|
||||||
|
lastSep = newAbsolutePath.lastIndexOf('\\');
|
||||||
|
|
||||||
|
String newName = newAbsolutePath.substring(lastSep + 1);
|
||||||
|
|
||||||
|
_element.setAttribute(DE.A_NAME, newName);
|
||||||
}
|
}
|
||||||
|
|
||||||
_isArchive = internalIsArchive();
|
_isArchive = internalIsArchive();
|
||||||
|
|
Loading…
Add table
Reference in a new issue