Package org.erlide.ui.internal.search

Examples of org.erlide.ui.internal.search.ErlangSearchResult


        scope.addModule(moduleB);
        final ErlSearchQuery query = new ErlSearchQuery(ref, scope, "");
        query.run(new NullProgressMonitor());
        // then
        // it should be found in module b
        final ErlangSearchResult searchResult = (ErlangSearchResult) query
                .getSearchResult();
        assertEquals(nFoundExpected, searchResult.getMatchCount());
        final List<ErlangSearchElement> result = searchResult.getResult();
        if (limitTo == LimitTo.REFERENCES) {
            // f is only referred in moduleB, but declarations matches in any
            // module as long as arity and name are equal
            assertFalse(hasModule(moduleA, result));
        } else {
View Full Code Here


        scope.addModule(moduleB);
        final ErlSearchQuery query = new ErlSearchQuery(ref, scope, "");
        query.run(new NullProgressMonitor());
        // then
        // it should be found in module b
        final ErlangSearchResult searchResult = (ErlangSearchResult) query
                .getSearchResult();
        assertEquals(1, searchResult.getMatchCount());
        final List<ErlangSearchElement> result = searchResult.getResult();
        assertTrue(hasModule(moduleB, result));
        assertFalse(hasModule(moduleA, result));
    }
View Full Code Here

        final ErlSearchScope reducedScope = pattern.reduceScope(scope);
        final ErlSearchQuery query = new ErlSearchQuery(pattern, reducedScope, "");
        query.run(new NullProgressMonitor());
        // then
        // it should be found in module a
        final ErlangSearchResult searchResult = (ErlangSearchResult) query
                .getSearchResult();
        assertEquals(2, searchResult.getMatchCount());
        final List<ErlangSearchElement> result = searchResult.getResult();
        assertTrue(hasModule(moduleA, result));
        assertFalse(hasModule(moduleB, result));
    }
View Full Code Here

TOP

Related Classes of org.erlide.ui.internal.search.ErlangSearchResult

Copyright © 2018 www.massapicom. 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.