From a8026252cd527d5aeb5897b641ee4a8df19a452c Mon Sep 17 00:00:00 2001 From: simonbrandhof Date: Wed, 15 Dec 2010 18:06:13 +0000 Subject: remove ISO categories from ws-client ResourceQuery + minor improvements of GWT API --- .../src/main/java/org/sonar/gwt/ui/Icons.java | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) (limited to 'sonar-gwt-api') diff --git a/sonar-gwt-api/src/main/java/org/sonar/gwt/ui/Icons.java b/sonar-gwt-api/src/main/java/org/sonar/gwt/ui/Icons.java index 10ff4cee076..1f26758cb0f 100644 --- a/sonar-gwt-api/src/main/java/org/sonar/gwt/ui/Icons.java +++ b/sonar-gwt-api/src/main/java/org/sonar/gwt/ui/Icons.java @@ -79,22 +79,30 @@ public final class Icons { /** * @since 2.2 + * @deprecated since 2.5 use {@link Icons#forSeverity(String)} */ public static AbstractImagePrototype forPriority(final String priority) { + return forSeverity(priority); + } + + /** + * @since 2.5 + */ + public static AbstractImagePrototype forSeverity(final String severity) { AbstractImagePrototype image; - if ("BLOCKER".equals(priority)) { + if ("BLOCKER".equals(severity)) { image = get().priorityBlocker(); - } else if ("CRITICAL".equals(priority)) { + } else if ("CRITICAL".equals(severity)) { image = get().priorityCritical(); - } else if ("MAJOR".equals(priority)) { + } else if ("MAJOR".equals(severity)) { image = get().priorityMajor(); - } else if ("MINOR".equals(priority)) { + } else if ("MINOR".equals(severity)) { image = get().priorityMinor(); - } else if ("INFO".equals(priority)) { + } else if ("INFO".equals(severity)) { image = get().priorityInfo(); } else { -- cgit v1.2.3