diff options
author | simonbrandhof <simon.brandhof@gmail.com> | 2010-11-04 09:09:43 +0000 |
---|---|---|
committer | simonbrandhof <simon.brandhof@gmail.com> | 2010-11-04 09:09:43 +0000 |
commit | 0e7c1da6f8cf80084842ed1d31bc2788b216e009 (patch) | |
tree | 47e330bc29ffa6099b76ce868f000546f4455670 /plugins | |
parent | c25b4eb24bd326c72a187012ba03ca92187a5cf6 (diff) | |
download | sonarqube-0e7c1da6f8cf80084842ed1d31bc2788b216e009.tar.gz sonarqube-0e7c1da6f8cf80084842ed1d31bc2788b216e009.zip |
SONAR-1643 improve HTML of widget filtering by categories
Diffstat (limited to 'plugins')
4 files changed, 8 insertions, 7 deletions
diff --git a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/CodeCoverageWidget.java b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/CodeCoverageWidget.java index abb4f2cf5bc..6e9baa8494d 100644 --- a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/CodeCoverageWidget.java +++ b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/CodeCoverageWidget.java @@ -19,9 +19,9 @@ */
package org.sonar.plugins.core.widgets;
-import org.sonar.api.web.AbstractRubyTemplate;
-import org.sonar.api.web.RubyRailsWidget;
+import org.sonar.api.web.*;
+@WidgetCategory({"Tests"})
public class CodeCoverageWidget extends AbstractRubyTemplate implements RubyRailsWidget {
public String getId() {
return "code_coverage";
diff --git a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/RulesWidget.java b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/RulesWidget.java index 50a70b78e97..b43247140c8 100644 --- a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/RulesWidget.java +++ b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/RulesWidget.java @@ -19,9 +19,9 @@ */
package org.sonar.plugins.core.widgets;
-import org.sonar.api.web.AbstractRubyTemplate;
-import org.sonar.api.web.RubyRailsWidget;
+import org.sonar.api.web.*;
+@WidgetCategory({"Rules"})
public class RulesWidget extends AbstractRubyTemplate implements RubyRailsWidget {
public String getId() {
return "rules";
diff --git a/plugins/sonar-design-plugin/src/main/java/org/sonar/plugins/design/ui/widgets/ChidamberKemererWidget.java b/plugins/sonar-design-plugin/src/main/java/org/sonar/plugins/design/ui/widgets/ChidamberKemererWidget.java index b2b145d1785..0bbcbcec6c6 100644 --- a/plugins/sonar-design-plugin/src/main/java/org/sonar/plugins/design/ui/widgets/ChidamberKemererWidget.java +++ b/plugins/sonar-design-plugin/src/main/java/org/sonar/plugins/design/ui/widgets/ChidamberKemererWidget.java @@ -22,8 +22,10 @@ package org.sonar.plugins.design.ui.widgets; import org.sonar.api.web.AbstractRubyTemplate; import org.sonar.api.web.RubyRailsWidget; import org.sonar.api.web.UserRole; +import org.sonar.api.web.WidgetCategory; @UserRole(UserRole.USER) +@WidgetCategory({"Design"}) public final class ChidamberKemererWidget extends AbstractRubyTemplate implements RubyRailsWidget { public String getId() { return "ckjm"; diff --git a/plugins/sonar-design-plugin/src/main/java/org/sonar/plugins/design/ui/widgets/PackageDesignWidget.java b/plugins/sonar-design-plugin/src/main/java/org/sonar/plugins/design/ui/widgets/PackageDesignWidget.java index 7c54c87ba55..309d95f18d0 100644 --- a/plugins/sonar-design-plugin/src/main/java/org/sonar/plugins/design/ui/widgets/PackageDesignWidget.java +++ b/plugins/sonar-design-plugin/src/main/java/org/sonar/plugins/design/ui/widgets/PackageDesignWidget.java @@ -19,11 +19,10 @@ */ package org.sonar.plugins.design.ui.widgets; -import org.sonar.api.web.AbstractRubyTemplate; -import org.sonar.api.web.RubyRailsWidget; -import org.sonar.api.web.UserRole; +import org.sonar.api.web.*; @UserRole(UserRole.USER) +@WidgetCategory({"Design"}) public final class PackageDesignWidget extends AbstractRubyTemplate implements RubyRailsWidget { public String getId() { return "package-design"; |