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:
parent
f19ce7f75a
commit
194aea5c58
1 changed files with 4 additions and 2 deletions
|
@ -39,9 +39,11 @@ 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();
|
||||||
|
if (path.segmentCount() > cpath.segmentCount()) {
|
||||||
IPath p = path.removeFirstSegments(cpath.segmentCount());
|
IPath p = path.removeFirstSegments(cpath.segmentCount());
|
||||||
setElementName(p.toString());
|
setElementName(p.toString());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/* (non-Javadoc)
|
/* (non-Javadoc)
|
||||||
* @see org.eclipse.cdt.internal.core.model.CContainer#computeChildren(org.eclipse.cdt.internal.core.model.OpenableInfo, org.eclipse.core.resources.IResource)
|
* @see org.eclipse.cdt.internal.core.model.CContainer#computeChildren(org.eclipse.cdt.internal.core.model.OpenableInfo, org.eclipse.core.resources.IResource)
|
||||||
|
|
Loading…
Add table
Reference in a new issue