Community
Participate
Working Groups
It is implementing ICompilationUnit.
This is the fake working copy for consistent usage of #getWorkingCopy. Why do you want it to implement IClassfile ?
Ok to close ?
A buffer factory registered with class files gets an ICompilationUnit as buffer owner passed into createBuffer. This is counter intuitive and does not allow access to the class file. JDT UI needs the class file to distinguish between class files in jars and those on the file system.
So what ? The API #getWorkingCopy() should answer an IWorkingCopy. A working copy doesn't know about classfiles. You had the classfile in your hands before asking for the working copy... We could however have its #getOriginalElement() return the classfile... would it do the trick ?
Adding #getOriginalElement() implementation on ClassFileWorkingCopy
Closing
*** Bug 110945 has been marked as a duplicate of this bug. ***