Skip to content
This repository has been archived by the owner on Apr 6, 2022. It is now read-only.

Commit

Permalink
[JENKINS-12424] Pulled up tool tips.
Browse files Browse the repository at this point in the history
  • Loading branch information
uhafner committed May 8, 2012
1 parent 882d057 commit fde91c3
Showing 1 changed file with 7 additions and 2 deletions.
Expand Up @@ -19,6 +19,7 @@
import hudson.model.Result;
import hudson.model.AbstractBuild;

import hudson.plugins.analysis.Messages;
import hudson.plugins.analysis.util.PluginLogger;
import hudson.plugins.analysis.util.ToolTipProvider;
import hudson.plugins.analysis.util.model.AbstractAnnotation;
Expand Down Expand Up @@ -181,14 +182,18 @@ public String getTooltip(final int numberOfItems) {
* the number of items to display the tooltip for
* @return the tooltip for several items
*/
protected abstract String getMultipleItemsTooltip(int numberOfItems);
protected String getMultipleItemsTooltip(final int numberOfItems) {
return Messages.ResultAction_MultipleWarnings(numberOfItems);
}

/**
* Returns the tooltip for exactly one item.
*
* @return the tooltip for exactly one item
*/
protected abstract String getSingleItemTooltip();
protected String getSingleItemTooltip() {
return Messages.ResultAction_OneWarning();
}

/** {@inheritDoc} */
public boolean isSuccessful() {
Expand Down

0 comments on commit fde91c3

Please sign in to comment.