Accepted answer

are you sure that you're seeing your source file and not the source for a library?

i.e. if you create a java library project and add it to another project, the projects are compiled independently. when you debug the application project, you'll see all the sources in that project, but you'll also see source files from the library project's generated jar that's attached to the library project. these source files are different than the ones in the library project itself and are also read-only.

i've stumbled on this one when developing an android app that used a lot of libraries and the files that eclipse was showing were files for jars added to the main project, not files from the library project that was included (although the source code was the same:) )

Related Query

More Query from same tag