aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorDavid Gageot <david@gageot.net>2012-05-24 13:50:44 +0200
committerDavid Gageot <david@gageot.net>2012-05-24 13:55:53 +0200
commitb8fbb2bd8b62c21a5e5e422e19dc8ccea1b9940b (patch)
tree71eda508ce03fc1fc7ac56dc3c2f1071c26531a0 /plugins
parent8b4e95d423875d4317a4777f4c972c571fd2e291 (diff)
downloadsonarqube-b8fbb2bd8b62c21a5e5e422e19dc8ccea1b9940b.tar.gz
sonarqube-b8fbb2bd8b62c21a5e5e422e19dc8ccea1b9940b.zip
Slightly better API for the filter extension point
Diffstat (limited to 'plugins')
-rw-r--r--plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/filters/MyFavouritesFilter.java2
-rw-r--r--plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/filters/ProjectFilter.java2
-rw-r--r--plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/filters/TreeMapFilter.java2
3 files changed, 3 insertions, 3 deletions
diff --git a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/filters/MyFavouritesFilter.java b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/filters/MyFavouritesFilter.java
index ceb8b8ec1db..df2fc4d9768 100644
--- a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/filters/MyFavouritesFilter.java
+++ b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/filters/MyFavouritesFilter.java
@@ -41,7 +41,7 @@ public class MyFavouritesFilter extends FilterTemplate {
Filter filter = Filter.create();
filter.setDisplayAs(Filter.LIST);
filter.setFavouritesOnly(true);
- filter.add(Criterion.create("qualifier", null, Criterion.EQ, "VW,SVW,TRK,BRC,DIR,PAC,FIL,CLA,UTS,LIB", false));
+ filter.add(Criterion.createForQualifier("VW", "SVW", "TRK", "BRC", "DIR", "PAC", "FIL", "CLA", "UTS", "LIB"));
filter.add(FilterColumn.create("metric", "alert_status", FilterColumn.DESC, false));
filter.add(FilterColumn.create("name", null, FilterColumn.ASC, false));
filter.add(FilterColumn.create("metric", "ncloc", FilterColumn.DESC, false));
diff --git a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/filters/ProjectFilter.java b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/filters/ProjectFilter.java
index 368805b21bb..189d85d0ec2 100644
--- a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/filters/ProjectFilter.java
+++ b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/filters/ProjectFilter.java
@@ -39,7 +39,7 @@ public class ProjectFilter extends FilterTemplate {
public Filter createFilter() {
Filter filter = Filter.create();
filter.setDisplayAs(Filter.LIST);
- filter.add(Criterion.create("qualifier", null, Criterion.EQ, "TRK", false));
+ filter.add(Criterion.createForQualifier("TRK"));
filter.add(FilterColumn.create("metric", "alert_status", FilterColumn.DESC, false));
filter.add(FilterColumn.create("name", null, FilterColumn.ASC, false));
filter.add(FilterColumn.create("version", null, FilterColumn.DESC, false));
diff --git a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/filters/TreeMapFilter.java b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/filters/TreeMapFilter.java
index 0227fb71468..0d5cb7a863f 100644
--- a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/filters/TreeMapFilter.java
+++ b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/filters/TreeMapFilter.java
@@ -40,7 +40,7 @@ public class TreeMapFilter extends FilterTemplate {
public Filter createFilter() {
Filter filter = Filter.create();
filter.setDisplayAs(Filter.TREEMAP);
- filter.add(Criterion.create("qualifier", null, Criterion.EQ, "TRK", false));
+ filter.add(Criterion.createForQualifier("TRK"));
filter.add(FilterColumn.create("name", null, FilterColumn.ASC, false));
filter.add(FilterColumn.create("metric", "ncloc", FilterColumn.DESC, false));
filter.add(FilterColumn.create("metric", "violations_density", FilterColumn.DESC, false));