Skip to content

Instantly share code, notes, and snippets.

@samueltcsantos
Created April 19, 2014 19:35
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/11095039 to your computer and use it in GitHub Desktop.
Save samueltcsantos/11095039 to your computer and use it in GitHub Desktop.
Pegar todos os pacotes de um Projeto do Workspace
/**
* get all packages in the project including the '.jars' packages
*
* @param javaProject
* @return
* @throws JavaModelException
*/
private IPackageFragment [] getProjectPackages(IJavaProject javaProject) throws JavaModelException{
IPackageFragment [] packages = javaProject.getPackageFragments();
return packages;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment