Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWalter Harley2008-09-29 07:18:54 +0000
committerWalter Harley2008-09-29 07:18:54 +0000
commitffc31b8ab0121bd8a4010c20c20d217b031bfd17 (patch)
tree8cdd40fed6fc2b54c9577c4f90352adfa059da36 /org.eclipse.jdt.apt.pluggable.core
parent3456d435147120c13b3c8d28211c7dc329afb268 (diff)
downloadeclipse.jdt.core-ffc31b8ab0121bd8a4010c20c20d217b031bfd17.tar.gz
eclipse.jdt.core-ffc31b8ab0121bd8a4010c20c20d217b031bfd17.tar.xz
eclipse.jdt.core-ffc31b8ab0121bd8a4010c20c20d217b031bfd17.zip
Bug 248156: implement FileObject.toUri() for generated Java files
Diffstat (limited to 'org.eclipse.jdt.apt.pluggable.core')
-rw-r--r--org.eclipse.jdt.apt.pluggable.core/src/org/eclipse/jdt/internal/apt/pluggable/core/filer/IdeOutputJavaFileObject.java6
1 files changed, 4 insertions, 2 deletions
diff --git a/org.eclipse.jdt.apt.pluggable.core/src/org/eclipse/jdt/internal/apt/pluggable/core/filer/IdeOutputJavaFileObject.java b/org.eclipse.jdt.apt.pluggable.core/src/org/eclipse/jdt/internal/apt/pluggable/core/filer/IdeOutputJavaFileObject.java
index 78a41ace09..660e7bc9f5 100644
--- a/org.eclipse.jdt.apt.pluggable.core/src/org/eclipse/jdt/internal/apt/pluggable/core/filer/IdeOutputJavaFileObject.java
+++ b/org.eclipse.jdt.apt.pluggable.core/src/org/eclipse/jdt/internal/apt/pluggable/core/filer/IdeOutputJavaFileObject.java
@@ -97,11 +97,13 @@ public class IdeOutputJavaFileObject extends IdeOutputFileObject implements Java
/* (non-Javadoc)
* @see javax.tools.FileObject#toUri()
+ * The file does not exist until its writer is closed, so the URI we are
+ * constructing here does not point to a real resource.
*/
@Override
public URI toUri() {
- // The file does not exist until its writer is closed.
- throw new UnsupportedOperationException("Not yet implemented");
+ IFile file = _env.getAptProject().getGeneratedFileManager().getIFileForTypeName(_name.toString());
+ return file.getLocationURI();
}
}

Back to the top