return fragment.createCompilationUnit(name, content, false, null);
}
public ICompilationUnit createCompilationUnit(IPackageFragmentRoot fragmentRoot, String testsrc, String path) throws CoreException, IOException {
IPath typepath = new Path(path);
String pkgname = typepath.removeLastSegments(1).toString().replace('/', '.');
IPackageFragment fragment = createPackage(fragmentRoot, pkgname);
StringBuffer sb = new StringBuffer();
URL url = Platform.find(Platform.getBundle("com.mountainminds.eclemma.core"), new Path(testsrc).append(typepath));
Reader r = new InputStreamReader(url.openStream());
int c;