Examples of IErlElement


Examples of org.erlide.engine.model.root.IErlElement

        final IFile file = srcFolder.getFile("xx.erl");
        final IErlElementLocator model = ErlangEngine.getInstance().getModel();
        final IErlModule otpFile = model.findModuleFromProject(project, "file.erl", null,
                IErlElementLocator.Scope.PROJECT_ONLY);
        module.open(null);
        final IErlElement element = module.getElementAtLine(3);
        assertEquals(file, module.getCorrespondingResource());
        assertNull(otpFile.getCorrespondingResource());
        assertNull(element.getCorrespondingResource());
    }
View Full Code Here

Examples of org.erlide.engine.new_model.IErlElement

        if (!SystemConfiguration.hasFeatureEnabled(Features.NEW_MODEL)) {
            return NO_CHILDREN;
        }
        if (parentElement instanceof IProject || parentElement instanceof IFile) {
            final IResource res = (IResource) parentElement;
            final IErlElement elem = ErlModelCore.create(res);
            if (elem == null || !elem.exists()) {
                return NO_CHILDREN;
            }
            try {
                return elem.getChildren();
            } catch (final CoreException e) {
            }
        }
        if (parentElement instanceof IErlProject) {
            try {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.