aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-gwt-api
diff options
context:
space:
mode:
authorsimonbrandhof <simon.brandhof@gmail.com>2010-12-15 18:06:13 +0000
committersimonbrandhof <simon.brandhof@gmail.com>2010-12-15 18:06:13 +0000
commita8026252cd527d5aeb5897b641ee4a8df19a452c (patch)
treebcf16b9727f3975b9ab786407da086db7fc3da71 /sonar-gwt-api
parentf212d46dd02ed138de0631e40d7ba72cf4083870 (diff)
downloadsonarqube-a8026252cd527d5aeb5897b641ee4a8df19a452c.tar.gz
sonarqube-a8026252cd527d5aeb5897b641ee4a8df19a452c.zip
remove ISO categories from ws-client ResourceQuery + minor improvements of GWT API
Diffstat (limited to 'sonar-gwt-api')
-rw-r--r--sonar-gwt-api/src/main/java/org/sonar/gwt/ui/Icons.java18
1 files changed, 13 insertions, 5 deletions
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 {