use of org.erlide.engine.model.root.IErlModel in project erlide_eclipse by erlang.
the class IndexedErlangValue method getErlProjects.
private Collection<IErlProject> getErlProjects(final Collection<IProject> projects) {
final List<IErlProject> result = Lists.newArrayListWithCapacity(projects.size());
final IErlModel model = ErlangEngine.getInstance().getModel();
for (final IProject project : projects) {
final IErlElement element = model.getChildWithResource(project);
if (element instanceof IErlProject) {
final IErlProject erlProject = (IErlProject) element;
result.add(erlProject);
}
}
return result;
}
Aggregations