private IJavaElement findSourceFolderElement(IFolder moduleFolder){
  IFolder folderSourcePackage=findSourcePackage(moduleFolder,"client");
  if (folderSourcePackage == null) {
    return null;
  }
  IJavaProject javaProject=JavaCore.create(folderSourcePackage.getProject());
  if (javaProject == null) {
    return null;
  }
  try {
    IPackageFragment clientPackage=javaProject.findPackageFragment(folderSourcePackage.getFullPath());
    return clientPackage;
  }
 catch (  JavaModelException e) {
    e.printStackTrace();
  }
  return null;
}

private IJavaElement findSourceFolderElement ( IFolder moduleFolder ) { IFolder folderSourcePackage = findSourcePackage ( moduleFolder , "client" ) ; if ( folderSourcePackage == null ) { return null ; } IJavaProject javaProject = JavaCore . create ( folderSourcePackage . getProject ( ) ) ; if ( javaProject == null ) { return null ; } try { IPackageFragment clientPackage = javaProject . findPackageFragment ( folderSourcePackage . getFullPath ( ) ) ; return clientPackage ; } catch ( JavaModelException e ) { e . printStackTrace ( ) ; } return null ; }
find the source folder for the src / main / . . . / client todo won ' t work b / c super source could have a client , or some other path before it .
