From: simonbrandhof Date: Fri, 3 Dec 2010 11:35:57 +0000 (+0000) Subject: SONAR-249 remove the annotation @SupportVariationDashboard X-Git-Tag: 2.6~429 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ef39d74467a4bf83bbf9bac8765407aba4706502;p=sonarqube.git SONAR-249 remove the annotation @SupportVariationDashboard --- 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 cdc3054543c..cd3f09e0df9 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,11 +19,13 @@ */ package org.sonar.plugins.core.widgets; -import org.sonar.api.web.*; +import org.sonar.api.web.AbstractRubyTemplate; +import org.sonar.api.web.Description; +import org.sonar.api.web.RubyRailsWidget; +import org.sonar.api.web.WidgetCategory; @WidgetCategory({"Tests"}) @Description("Reports on units tests and code coverage by unit tests.") -@SupportVariationDashboard 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/CommentsDuplicationsWidget.java b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/CommentsDuplicationsWidget.java index deaf2312209..62446403366 100644 --- a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/CommentsDuplicationsWidget.java +++ b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/CommentsDuplicationsWidget.java @@ -22,10 +22,8 @@ package org.sonar.plugins.core.widgets; import org.sonar.api.web.AbstractRubyTemplate; import org.sonar.api.web.Description; import org.sonar.api.web.RubyRailsWidget; -import org.sonar.api.web.SupportVariationDashboard; @Description("Reports on copy/paste and documentation") -@SupportVariationDashboard public class CommentsDuplicationsWidget extends AbstractRubyTemplate implements RubyRailsWidget { public String getId() { return "comments_duplications"; diff --git a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/ComplexityWidget.java b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/ComplexityWidget.java index 48253c89b82..90dba687ae3 100644 --- a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/ComplexityWidget.java +++ b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/ComplexityWidget.java @@ -22,10 +22,8 @@ package org.sonar.plugins.core.widgets; import org.sonar.api.web.AbstractRubyTemplate; import org.sonar.api.web.Description; import org.sonar.api.web.RubyRailsWidget; -import org.sonar.api.web.SupportVariationDashboard; @Description("Reports on complexity, average complexity and complexity distribution.") -@SupportVariationDashboard public class ComplexityWidget extends AbstractRubyTemplate implements RubyRailsWidget { public String getId() { return "complexity"; 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 da43347c7c0..d9d166aefda 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 @@ -23,7 +23,6 @@ import org.sonar.api.web.*; @WidgetCategory({"Rules"}) @Description("Reports violations and compliance index on coding standards.") -@SupportVariationDashboard public class RulesWidget extends AbstractRubyTemplate implements RubyRailsWidget { public String getId() { return "rules"; diff --git a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/SizeWidget.java b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/SizeWidget.java index df04453f03c..3c6a5c42055 100644 --- a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/SizeWidget.java +++ b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/SizeWidget.java @@ -22,10 +22,8 @@ package org.sonar.plugins.core.widgets; import org.sonar.api.web.AbstractRubyTemplate; import org.sonar.api.web.Description; import org.sonar.api.web.RubyRailsWidget; -import org.sonar.api.web.SupportVariationDashboard; @Description("Reports general metrics on the size of the project.") -@SupportVariationDashboard public class SizeWidget extends AbstractRubyTemplate implements RubyRailsWidget { public String getId() { return "size"; diff --git a/sonar-plugin-api/src/main/java/org/sonar/api/web/SupportVariationDashboard.java b/sonar-plugin-api/src/main/java/org/sonar/api/web/SupportVariationDashboard.java deleted file mode 100644 index ab477c17b95..00000000000 --- a/sonar-plugin-api/src/main/java/org/sonar/api/web/SupportVariationDashboard.java +++ /dev/null @@ -1,36 +0,0 @@ -/* - * 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; - -/** - * Annotated widgets support the variation view of dashboards - * - * @since 2.5 - */ -@Retention(RetentionPolicy.RUNTIME) -@Target(ElementType.TYPE) -public @interface SupportVariationDashboard { - -}