mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-02 22:55:26 +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
|
||||
{
|
||||
StringBuffer buf = new StringBuffer(remoteParent);
|
||||
if (remoteParent.trim().equals("/")) //$NON-NLS-1$
|
||||
{
|
||||
buf.append(name);
|
||||
}
|
||||
else
|
||||
{
|
||||
buf.append(getSeparator(remoteParent));
|
||||
buf.append(name);
|
||||
String sep = getSeparator(remoteParent);
|
||||
if (sep.length()>0 && !remoteParent.endsWith(sep)) {
|
||||
buf.append(sep);
|
||||
}
|
||||
buf.append(name);
|
||||
de = getElementFor(buf.toString());
|
||||
}
|
||||
dsQueryCommand(de, IUniversalDataStoreConstants.C_QUERY_GET_REMOTE_OBJECT, monitor);
|
||||
|
|
Loading…
Add table
Reference in a new issue