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,8 +39,10 @@ public class SourceRoot extends CContainer implements ISourceRoot {
sourceEntry = entry; sourceEntry = entry;
IPath path = getPath(); IPath path = getPath();
IPath cpath = getParent().getPath(); IPath cpath = getParent().getPath();
IPath p = path.removeFirstSegments(cpath.segmentCount()); if (path.segmentCount() > cpath.segmentCount()) {
setElementName(p.toString()); IPath p = path.removeFirstSegments(cpath.segmentCount());
setElementName(p.toString());
}
} }
/* (non-Javadoc) /* (non-Javadoc)