Package org.erlide.engine.model.root

Examples of org.erlide.engine.model.root.IErlExternal.open()


                        } else {
                            if (!addExternals) {
                                return false;
                            }
                        }
                        theExternal.open(null);
                    }
                    if (theElement instanceof IErlModule) {
                        final IErlModule module = (IErlModule) theElement;
                        if (externalModulePaths.add(module.getFilePath())) {
                            result.addModule(module);
View Full Code Here


    @Test
    public void isOTP() throws Exception {
        final List<IErlElement> externals = project
                .getChildrenOfKind(ErlElementKind.EXTERNAL_ROOT);
        final IErlExternal external = (IErlExternal) externals.get(0);
        external.open(null);
        assertFalse(external.isOTP());

        final IErlExternal external2 = (IErlExternal) externals.get(1);
        external2.open(null);
        assertTrue(external2.isOTP());
View Full Code Here

        final IErlExternal external = (IErlExternal) externals.get(0);
        external.open(null);
        assertFalse(external.isOTP());

        final IErlExternal external2 = (IErlExternal) externals.get(1);
        external2.open(null);
        assertTrue(external2.isOTP());

        final IErlExternal external3 = (IErlExternal) external.getChildren().get(0);
        assertFalse(external3.isOTP());
View Full Code Here

    @Test
    public void hasIncludes() throws Exception {
        final List<IErlElement> externals = project
                .getChildrenOfKind(ErlElementKind.EXTERNAL_ROOT);
        final IErlExternal external = (IErlExternal) externals.get(0);
        external.open(null);
        final IErlExternal externalOTP = (IErlExternal) externals.get(1);
        externalOTP.open(null);
        final IErlExternal externalDialyzer = (IErlExternal) externalOTP
                .getChildNamed("dialyzer");
        assertTrue(external.hasIncludes());
View Full Code Here

        final List<IErlElement> externals = project
                .getChildrenOfKind(ErlElementKind.EXTERNAL_ROOT);
        final IErlExternal external = (IErlExternal) externals.get(0);
        external.open(null);
        final IErlExternal externalOTP = (IErlExternal) externals.get(1);
        externalOTP.open(null);
        final IErlExternal externalDialyzer = (IErlExternal) externalOTP
                .getChildNamed("dialyzer");
        assertTrue(external.hasIncludes());
        assertTrue(externalOTP.hasIncludes());
        assertFalse(externalDialyzer.hasIncludes());
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.