aboutsummaryrefslogtreecommitdiffstats
path: root/sonar-plugin-api
diff options
context:
space:
mode:
authorsimonbrandhof <simon.brandhof@gmail.com>2010-11-03 22:35:03 +0000
committersimonbrandhof <simon.brandhof@gmail.com>2010-11-03 22:35:03 +0000
commitc25b4eb24bd326c72a187012ba03ca92187a5cf6 (patch)
tree91cb76e281d0e6e02c145545ab408f7207a850cc /sonar-plugin-api
parent085e24b66e703f5609a974329603fe863d377f41 (diff)
downloadsonarqube-c25b4eb24bd326c72a187012ba03ca92187a5cf6.tar.gz
sonarqube-c25b4eb24bd326c72a187012ba03ca92187a5cf6.zip
SONAR-1643 filter widgets by category when configuring a dashboard
Diffstat (limited to 'sonar-plugin-api')
-rw-r--r--sonar-plugin-api/src/main/java/org/sonar/api/web/WidgetCategory.java34
1 files changed, 34 insertions, 0 deletions
diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/web/WidgetCategory.java b/sonar-plugin-api/src/main/java/org/sonar/api/web/WidgetCategory.java
new file mode 100644
index 00000000000..b6a72ebccb9
--- /dev/null
+++ b/sonar-plugin-api/src/main/java/org/sonar/api/web/WidgetCategory.java
@@ -0,0 +1,34 @@
+/*
+ * Sonar, open source software quality management tool.
+ * Copyright (C) 2009 SonarSource SA
+ * mailto:contact AT sonarsource DOT com
+ *
+ * Sonar is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 3 of the License, or (at your option) any later version.
+ *
+ * Sonar is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with Sonar; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02
+ */
+package org.sonar.api.web;
+
+import java.lang.annotation.ElementType;
+import java.lang.annotation.Retention;
+import java.lang.annotation.RetentionPolicy;
+import java.lang.annotation.Target;
+
+/**
+ * @since 2.4
+ */
+@Retention(RetentionPolicy.RUNTIME)
+@Target(ElementType.TYPE)
+public @interface WidgetCategory {
+ String[] value();
+}