1
0
Fork 0
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:
David McKnight 2007-06-04 20:37:49 +00:00
parent 9792857149
commit 9aedb11c6d

View file

@ -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);