Package org.erlide.engine.services.search

Examples of org.erlide.engine.services.search.LimitTo


                }
            }

            try {
                final int scope = settings.getInt("scope"); //$NON-NLS-1$
                LimitTo limitTo;
                try {
                    limitTo = LimitTo.valueOf(settings.get("limitTo")); // //$NON-NLS-1$
                } catch (final IllegalArgumentException e) {
                    limitTo = LimitTo.REFERENCES;
                }
View Full Code Here


        return query.getLabel() + " - " + matchCount + " " + occurrences + " in " + scope
                + ".";
    }

    private String getOccurrencesLabel(final int matchCount) {
        final LimitTo limitTo = query.getPattern().getLimitTo();
        switch (limitTo) {
        case ALL_OCCURRENCES:
            return matchCount == 1 ? "occurrence" : "occurrences";
        case DEFINITIONS:
            return matchCount == 1 ? "definition" : "definitions";
View Full Code Here

TOP

Related Classes of org.erlide.engine.services.search.LimitTo

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.