| [news.eclipse.tools.jdt] Re: get the source associated with a class file |
in my code, I get IJavaElement which actually represents a class file. Now from this object, I want ICompilationUnit i.e. the source file corresponding to this class file. I know there is a method in IClassFile "getWorkingCopy" but I think using this method will have performance hit as I think it will allocate some buffers and stuff? and I dont know how to use the WorkingCopyOwner argument?
If you .class file from the output folder ? -- Olivier