Examples of SearchType


Examples of org.openquark.cal.compiler.SourceMetricFinder.SearchType

        if(messageLogger == null) {
            throw new NullPointerException("messageLogger must not be null");
        }

        ResultsCollector results = new ResultsCollector();
        SearchType searchType = SearchType.DEFINITION;
        if (getSourceText){
            searchType = SearchType.SOURCE_TEXT;
        }
        findDefinitionHelper(Collections.singletonList(targetIdentifier.getName()), results, searchType, messageLogger);
View Full Code Here

Examples of org.zanata.webtrans.shared.rpc.HasSearchType.SearchType

        StringBuilder sources = new StringBuilder();
        for (String source : transUnit.getSources()) {
            sources.append(source);
            sources.append(" ");
        }
        SearchType searchType = GetGlossary.SearchType.FUZZY;
        createGlossaryRequest(sources.toString(), searchType);
    }
View Full Code Here

Examples of org.zanata.webtrans.shared.rpc.HasSearchType.SearchType

            ExecutionContext context) throws ActionException {
        identity.checkLoggedIn();

        String searchText = action.getQuery();
        ShortString abbrev = new ShortString(searchText);
        SearchType searchType = action.getSearchType();
        log.debug("Fetching Glossary matches({}) for \"{}\"", searchType,
                abbrev);

        LocaleId localeID = action.getLocaleId();
        ArrayList<GlossaryResultItem> results;
View Full Code Here

Examples of org.zanata.webtrans.shared.rpc.HasSearchType.SearchType

                .getValue()));
    }

    public void createTMRequestForTransUnit(TransUnit transUnit) {
        // Start automatically fuzzy search
        SearchType searchType = SearchType.FUZZY_PLURAL;
        createTMRequest(new TransMemoryQuery(transUnit.getSources(), searchType));
    }
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.