in org.apache.easyant4e/src/org/apache/easyant4e/services/EasyantProjectServiceImpl.java [214:231]
private void addNature(IProject project, IProgressMonitor monitor) {
AddEasyAntNatureOperation addNature = new AddEasyAntNatureOperation(project);
try {
if(monitor==null){
PlatformUI.getWorkbench().getProgressService().run(false, false, addNature);
}else{
addNature.run(monitor);
}
} catch (InvocationTargetException e) {
Activator.getEasyAntPlugin().log(IStatus.ERROR, "Cannot add EasyAnt nature.", e);
} catch (InterruptedException e) {
Activator.getEasyAntPlugin().log(IStatus.CANCEL, "Add EasyAnt nature operation aborted!", e);
}
// TODO launch resolve (ask to user)
// TODO initialize IvyDE classpath container
// TODO maybe launch the first build ??
}