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

fix call to PathUtil.makeRelativePath()

This commit is contained in:
Chris Wiebe 2004-08-27 23:42:22 +00:00
parent 355b875edc
commit 1d60889ad3
2 changed files with 2 additions and 2 deletions

View file

@ -414,7 +414,7 @@ public class AddIncludeOnSelectionAction extends Action implements IUpdate {
isSystemIncludePath = true;
} else if (projectLocation.isPrefixOf(typeLocation)
&& projectLocation.isPrefixOf(headerLocation)) {
includePath = PathUtil.makeRelativePath(typeLocation, headerLocation);
includePath = PathUtil.makeRelativePath(typeLocation, headerLocation.removeLastSegments(1));
}
if (includePath == null)
includePath = typeLocation;

View file

@ -926,7 +926,7 @@ public class NewClassWizardPage extends WizardPage implements Listener {
systemIncludePath = true;
} else {
if (projectPath.isPrefixOf(location.getPath()) && projectPath.isPrefixOf(header.getPath()))
relativePath = location.getRelativePath(header.getPath());
relativePath = location.getRelativePath(header.getPath().removeLastSegments(1));
}
baseClassFileName = relativePath.toString();
}