Search in sources :

Example 1 with ErlModule

use of org.erlide.engine.internal.model.root.ErlModule in project erlide_eclipse by erlang.

the class ErlModel method getModuleWithoutResource.

private IErlModule getModuleWithoutResource(final IParent parent, final String name, final IPath path, final Charset encoding, final String initialText) {
    IErlModule m = moduleMap.get(path);
    if (m == null) {
        final IParent parent2 = parent == null ? this : parent;
        if (path != null) {
            m = new ErlModule(parent2, name, path.toPortableString(), encoding, initialText);
            moduleMap.put(path, m);
            mapModule.put(m, path);
        } else {
            m = new ErlModule(parent2, name, null, encoding, initialText);
        }
    }
    return m;
}
Also used : ErlModule(org.erlide.engine.internal.model.root.ErlModule) IErlModule(org.erlide.engine.model.root.IErlModule) IParent(org.erlide.engine.model.IParent) IErlModule(org.erlide.engine.model.root.IErlModule)

Aggregations

ErlModule (org.erlide.engine.internal.model.root.ErlModule)1 IParent (org.erlide.engine.model.IParent)1 IErlModule (org.erlide.engine.model.root.IErlModule)1