Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Recoskie2008-01-15 19:13:24 +0000
committerChris Recoskie2008-01-15 19:13:24 +0000
commitf40c392f11a8419a9d6970b3f29ebfa4bed3ddc8 (patch)
treedd3666c19125bcb73faf2f166c5b98714383e793 /debug/org.eclipse.cdt.debug.core
parent424485c9711ec643a97a19c81f22a04103648204 (diff)
downloadorg.eclipse.cdt-f40c392f11a8419a9d6970b3f29ebfa4bed3ddc8.tar.gz
org.eclipse.cdt-f40c392f11a8419a9d6970b3f29ebfa4bed3ddc8.tar.xz
org.eclipse.cdt-f40c392f11a8419a9d6970b3f29ebfa4bed3ddc8.zip
Created ICElement.getLocationURI() method. Changed ITranslationUnit concrete implementations to only be constructable from URIs.
Diffstat (limited to 'debug/org.eclipse.cdt.debug.core')
-rw-r--r--debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/sourcelookup/AbsolutePathSourceContainer.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/sourcelookup/AbsolutePathSourceContainer.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/sourcelookup/AbsolutePathSourceContainer.java
index a0ec7a6c375..860fb413043 100644
--- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/sourcelookup/AbsolutePathSourceContainer.java
+++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/core/sourcelookup/AbsolutePathSourceContainer.java
@@ -55,7 +55,7 @@ public class AbsolutePathSourceContainer extends AbstractSourceContainer {
{
IPath path = Path.fromOSString(file.getCanonicalPath());
String id = CoreModel.getRegistedContentTypeId(project.getProject(), path.lastSegment());
- return new ExternalTranslationUnit[] { new ExternalTranslationUnit(project, new Path(file.getCanonicalPath()), id) };
+ return new ExternalTranslationUnit[] { new ExternalTranslationUnit(project, file.toURI(), id) };
}
}
} catch (IOException e) { // ignore if getCanonicalPath throws

Back to the top