*/\r
package org.sonar.plugins.core.widgets;\r
\r
-import org.sonar.api.web.*;\r
+import org.sonar.api.web.AbstractRubyTemplate;\r
+import org.sonar.api.web.Description;\r
+import org.sonar.api.web.RubyRailsWidget;\r
+import org.sonar.api.web.WidgetCategory;\r
\r
@WidgetCategory({"Tests"})\r
@Description("Reports on units tests and code coverage by unit tests.")\r
-@SupportVariationDashboard\r
public class CodeCoverageWidget extends AbstractRubyTemplate implements RubyRailsWidget {\r
public String getId() {\r
return "code_coverage";\r
import org.sonar.api.web.AbstractRubyTemplate;\r
import org.sonar.api.web.Description;\r
import org.sonar.api.web.RubyRailsWidget;\r
-import org.sonar.api.web.SupportVariationDashboard;\r
\r
@Description("Reports on copy/paste and documentation")\r
-@SupportVariationDashboard\r
public class CommentsDuplicationsWidget extends AbstractRubyTemplate implements RubyRailsWidget {\r
public String getId() {\r
return "comments_duplications";\r
import org.sonar.api.web.AbstractRubyTemplate;\r
import org.sonar.api.web.Description;\r
import org.sonar.api.web.RubyRailsWidget;\r
-import org.sonar.api.web.SupportVariationDashboard;\r
\r
@Description("Reports on complexity, average complexity and complexity distribution.")\r
-@SupportVariationDashboard\r
public class ComplexityWidget extends AbstractRubyTemplate implements RubyRailsWidget {\r
public String getId() {\r
return "complexity";\r
\r
@WidgetCategory({"Rules"})\r
@Description("Reports violations and compliance index on coding standards.")\r
-@SupportVariationDashboard\r
public class RulesWidget extends AbstractRubyTemplate implements RubyRailsWidget {\r
public String getId() {\r
return "rules";\r
import org.sonar.api.web.AbstractRubyTemplate;\r
import org.sonar.api.web.Description;\r
import org.sonar.api.web.RubyRailsWidget;\r
-import org.sonar.api.web.SupportVariationDashboard;\r
\r
@Description("Reports general metrics on the size of the project.")\r
-@SupportVariationDashboard\r
public class SizeWidget extends AbstractRubyTemplate implements RubyRailsWidget {\r
public String getId() {\r
return "size";\r
+++ /dev/null
-/*
- * 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 {
-
-}