1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

bug fix the name was truncated.

This commit is contained in:
Alain Magloire 2004-03-22 06:01:21 +00:00
parent f19ce7f75a
commit 194aea5c58

View file

@ -39,9 +39,11 @@ public class SourceRoot extends CContainer implements ISourceRoot {
sourceEntry = entry;
IPath path = getPath();
IPath cpath = getParent().getPath();
if (path.segmentCount() > cpath.segmentCount()) {
IPath p = path.removeFirstSegments(cpath.segmentCount());
setElementName(p.toString());
}
}
/* (non-Javadoc)
* @see org.eclipse.cdt.internal.core.model.CContainer#computeChildren(org.eclipse.cdt.internal.core.model.OpenableInfo, org.eclipse.core.resources.IResource)