1
0
Fork 0
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:
David Inglis 2004-05-06 15:51:28 +00:00
parent dd52df1494
commit 43ec78a634

View file

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