summaryrefslogtreecommitdiffstats
path: root/plugins/sonar-design-plugin/src
diff options
context:
space:
mode:
authorsimonbrandhof <simon.brandhof@gmail.com>2010-11-04 09:09:43 +0000
committersimonbrandhof <simon.brandhof@gmail.com>2010-11-04 09:09:43 +0000
commit0e7c1da6f8cf80084842ed1d31bc2788b216e009 (patch)
tree47e330bc29ffa6099b76ce868f000546f4455670 /plugins/sonar-design-plugin/src
parentc25b4eb24bd326c72a187012ba03ca92187a5cf6 (diff)
downloadsonarqube-0e7c1da6f8cf80084842ed1d31bc2788b216e009.tar.gz
sonarqube-0e7c1da6f8cf80084842ed1d31bc2788b216e009.zip
SONAR-1643 improve HTML of widget filtering by categories
Diffstat (limited to 'plugins/sonar-design-plugin/src')
-rw-r--r--plugins/sonar-design-plugin/src/main/java/org/sonar/plugins/design/ui/widgets/ChidamberKemererWidget.java2
-rw-r--r--plugins/sonar-design-plugin/src/main/java/org/sonar/plugins/design/ui/widgets/PackageDesignWidget.java5
2 files changed, 4 insertions, 3 deletions
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";