mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-14 20:45:22 +02:00
[189681] patch for cleaner use of separator
This commit is contained in:
parent
9792857149
commit
9aedb11c6d
1 changed files with 4 additions and 8 deletions
|
@ -726,15 +726,11 @@ public class DStoreFileService extends AbstractDStoreService implements IFileSer
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
StringBuffer buf = new StringBuffer(remoteParent);
|
StringBuffer buf = new StringBuffer(remoteParent);
|
||||||
if (remoteParent.trim().equals("/")) //$NON-NLS-1$
|
String sep = getSeparator(remoteParent);
|
||||||
{
|
if (sep.length()>0 && !remoteParent.endsWith(sep)) {
|
||||||
buf.append(name);
|
buf.append(sep);
|
||||||
}
|
}
|
||||||
else
|
|
||||||
{
|
|
||||||
buf.append(getSeparator(remoteParent));
|
|
||||||
buf.append(name);
|
buf.append(name);
|
||||||
}
|
|
||||||
de = getElementFor(buf.toString());
|
de = getElementFor(buf.toString());
|
||||||
}
|
}
|
||||||
dsQueryCommand(de, IUniversalDataStoreConstants.C_QUERY_GET_REMOTE_OBJECT, monitor);
|
dsQueryCommand(de, IUniversalDataStoreConstants.C_QUERY_GET_REMOTE_OBJECT, monitor);
|
||||||
|
|
Loading…
Add table
Reference in a new issue