Package org.jvnet.localizer

Examples of org.jvnet.localizer.Localizable


    /**
     * No differences were found between ''{0}'' and ''{1}''.
     *
     */
    public static Localizable _MSG_NoDifference(Object arg1, Object arg2) {
        return new Localizable(holder, "MSG_NoDifference", arg1, arg2);
    }
View Full Code Here


            } else {
                for (Map.Entry<CoverageMetric, Integer> e : scores.entrySet()) {
                    minKey = e.getKey();
                }
                if (minKey != null) {
                    Localizable localizedDescription = Messages._CoberturaBuildAction_description(result.get(minKey).getPercentage(), result.get(minKey).toString(), minKey.getName());
                    health = new HealthReport(minValue, localizedDescription);
                    return health;
                }
                return null;
            }

        } else {
            Localizable localizedDescription = Messages._CoberturaBuildAction_description(result.get(minKey).getPercentage(), result.get(minKey).toString(), minKey.getName());
            health = new HealthReport(minValue, localizedDescription);
            return health;
        }
    }
View Full Code Here

            i = i.getPreviousBuild();
        }
        if (totalCount > 0) {
            int score = (int) ((100.0 * (totalCount - failCount)) / totalCount);

            Localizable description;
            if (failCount == 0) {
                description = Messages._Job_NoRecentBuildFailed();
            } else if (totalCount == failCount) {
                // this should catch the case where totalCount == 1
                // as failCount must be between 0 and totalCount
View Full Code Here

    public HealthReport getBuildHealth() {
        final int totalCount = getTotalCount();
        final int failCount = getFailCount();
        int score = (totalCount == 0) ? 100 : (int) (100.0 * (1.0 - ((double)failCount) / totalCount));
        Localizable description, displayName = Messages._AbstractTestResultAction_getDisplayName();
        if (totalCount == 0) {
          description = Messages._AbstractTestResultAction_zeroTestDescription(displayName);
        } else {
          description = Messages._AbstractTestResultAction_TestsDescription(displayName, failCount, totalCount);
        }
View Full Code Here

    /**
     * Please set a VM path
     *
     */
    public static Localizable _pharo_vmPathEmpty() {
        return new Localizable(holder, "pharo.vmPathEmpty");
    }
View Full Code Here

    /**
     * Pharo Image Builder
     *
     */
    public static Localizable _pharo_displayName() {
        return new Localizable(holder, "pharo.displayName");
    }
View Full Code Here

    /**
     * Input changes file does not exist
     *
     */
    public static Localizable _pharo_inputChangesDoesNotExist() {
        return new Localizable(holder, "pharo.inputChangesDoesNotExist");
    }
View Full Code Here

    /**
     * Please set an image name
     *
     */
    public static Localizable _pharo_imageEmpty() {
        return new Localizable(holder, "pharo.imageEmpty");
    }
View Full Code Here

    /**
     * Input image file does not exist
     *
     */
    public static Localizable _pharo_inputImageDoesNotExist() {
        return new Localizable(holder, "pharo.inputImageDoesNotExist");
    }
View Full Code Here

    /**
     * Image Build Failed
     *
     */
    public static Localizable _pharo_imageBuildFailed() {
        return new Localizable(holder, "pharo.imageBuildFailed");
    }
View Full Code Here

TOP

Related Classes of org.jvnet.localizer.Localizable

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.