Skip to content

Instantly share code, notes, and snippets.

@samueltcsantos
Created April 19, 2014 21:54
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/11098673 to your computer and use it in GitHub Desktop.
Save samueltcsantos/11098673 to your computer and use it in GitHub Desktop.
Pegar um projeto específico por nome
/**
* Get a specific project by project name.
*
* @see {https://github.com/samueltcsantos/eclipse-jdt}
*
* @param projectName
* @return
*/
public IProject getProject(String projectName){
// here root is IWorkspaceRoot from ResourcesPlugin.getWorkspace().getRoot();
return root.getProject(projectName);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment