@SuppressWarnings("unchecked")
@Override
public void addToClassPath(IJavaProject project, IProgressMonitor mon) {
try {
//TODO: progress monitor handling
ISpringBootProject bootProject = SpringBootCore.create(project);
Collection<MavenCoordinates> sources;
sources = getProviders();
MavenCoordinates source = chooseSource(sources);
if (source!=null) {
bootProject.addMavenDependency(source, preferManagedVersion);
}
} catch (Exception e) {
BootActivator.log(e);
}
}