use of org.erlide.engine.model.root.IErlLibrary in project erlide_eclipse by erlang.
the class ErlModel method createLibrary.
public IErlLibrary createLibrary(final RuntimeVersion version) {
if (version == null) {
return null;
}
final IErlLibrary ep = new ErlOtpLibrary(version, this);
addChild(ep);
return ep;
}
use of org.erlide.engine.model.root.IErlLibrary in project erlide_eclipse by erlang.
the class ErlModel method getLibraries.
@Override
public Collection<IErlLibrary> getLibraries() throws ErlModelException {
final Collection<IErlElement> list = getChildrenOfKind(ErlElementKind.LIBRARY);
final Collection<IErlLibrary> result = Lists.newArrayList();
for (final IErlElement e : list) {
result.add((IErlLibrary) e);
}
return result;
}
Aggregations