We are developing an eclipse plugin and we have an extension like say, \".xyz\" but it actually contains java code. JavaCore.createCompilationUnitFrom() accepts only files w