1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-23 00:45:28 +02:00

Keep workspace relative paths as absolute as before: ${workspace_loc:/proj/...} instead of ${workspace_loc:proj/...}

This commit is contained in:
James Blackburn 2009-11-11 09:45:04 +00:00
parent 1ae62f2a77
commit a44d15b73d

View file

@ -273,10 +273,10 @@ public class FileListControl {
resource = (IResource) o;
if (resource.getProject().equals(project))
values[i++] = variableManager.generateVariableExpression(WORKSPACELOC_VAR,
PROJECTNAME_PATH.append(resource.getProjectRelativePath()).toString());
PROJECTNAME_PATH.append(resource.getProjectRelativePath()).makeAbsolute().toString());
else
values[i++] = variableManager.generateVariableExpression(WORKSPACELOC_VAR,
resource.getFullPath().makeRelative().toString());
resource.getFullPath().toString());
}
// If only one entry, update the text field
if (values.length == 1)