mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
fixed dir display of include paths
This commit is contained in:
parent
dd52df1494
commit
43ec78a634
1 changed files with 2 additions and 0 deletions
|
@ -14,6 +14,7 @@ import org.eclipse.cdt.core.model.IIncludeReference;
|
|||
import org.eclipse.cdt.internal.ui.IAdornmentProvider;
|
||||
import org.eclipse.cdt.internal.ui.StandardCElementLabelProvider;
|
||||
import org.eclipse.core.runtime.IPath;
|
||||
import org.eclipse.core.runtime.Path;
|
||||
|
||||
/*
|
||||
* CViewLabelProvider
|
||||
|
@ -46,6 +47,7 @@ public class CViewLabelProvider extends StandardCElementLabelProvider {
|
|||
IPath p = ref.getPath();
|
||||
IPath parentLocation = ((IIncludeReference)parent).getPath();
|
||||
if (parentLocation.isPrefixOf(p)) {
|
||||
p = p.setDevice(null);
|
||||
p = p.removeFirstSegments(parentLocation.segmentCount());
|
||||
}
|
||||
return p.toString();
|
||||
|
|
Loading…
Add table
Reference in a new issue