Search in sources :

Example 1 with IErlLibrary

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;
}
Also used : ErlOtpLibrary(org.erlide.engine.internal.model.root.ErlOtpLibrary) IErlLibrary(org.erlide.engine.model.root.IErlLibrary)

Example 2 with IErlLibrary

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;
}
Also used : IErlElement(org.erlide.engine.model.IErlElement) IErlLibrary(org.erlide.engine.model.root.IErlLibrary)

Aggregations

IErlLibrary (org.erlide.engine.model.root.IErlLibrary)2 ErlOtpLibrary (org.erlide.engine.internal.model.root.ErlOtpLibrary)1 IErlElement (org.erlide.engine.model.IErlElement)1