Skip to content

Instantly share code, notes, and snippets.

@samueltcsantos
Created April 19, 2014 20:31
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save samueltcsantos/11096642 to your computer and use it in GitHub Desktop.
Save samueltcsantos/11096642 to your computer and use it in GitHub Desktop.
Pegar todas as Unidade de Compilação em um pacote.
/**
* Get all compilation Unit in the package.
*
* @see {https://github.com/samueltcsantos/eclipse-jdt}
*
* @param myPackage
* @return
* @throws JavaModelException
*/
private ICompilationUnit [] getCompilationUnits(IPackageFragment myPackage) throws JavaModelException{
return myPackage.getCompilationUnits();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment