From: Simon Brandhof Date: Mon, 21 May 2012 09:24:12 +0000 (+0200) Subject: Remove ImageWidget. It was used for validating new dashboards. X-Git-Tag: 3.1~165 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=d3cd6cf236397c49ecc0b677b3b276cc6fcd682f;p=sonarqube.git Remove ImageWidget. It was used for validating new dashboards. --- diff --git a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/CorePlugin.java b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/CorePlugin.java index 9aeeb35e456..b99b1558fe5 100644 --- a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/CorePlugin.java +++ b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/CorePlugin.java @@ -89,7 +89,6 @@ import org.sonar.plugins.core.widgets.FilterWidget; import org.sonar.plugins.core.widgets.HotspotMetricWidget; import org.sonar.plugins.core.widgets.HotspotMostViolatedResourcesWidget; import org.sonar.plugins.core.widgets.HotspotMostViolatedRulesWidget; -import org.sonar.plugins.core.widgets.ImageWidget; import org.sonar.plugins.core.widgets.ItCoverageWidget; import org.sonar.plugins.core.widgets.RulesWidget; import org.sonar.plugins.core.widgets.SizeWidget; @@ -324,7 +323,6 @@ public final class CorePlugin extends SonarPlugin { extensions.add(ActionPlansWidget.class); extensions.add(ReviewsMetricsWidget.class); extensions.add(TreemapWidget.class); - extensions.add(ImageWidget.class); extensions.add(FilterWidget.class); // dashboards diff --git a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/ImageWidget.java b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/ImageWidget.java deleted file mode 100644 index 5ac2599ee75..00000000000 --- a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/ImageWidget.java +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Sonar, open source software quality management tool. - * Copyright (C) 2008-2012 SonarSource - * 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.plugins.core.widgets; - -import org.sonar.api.web.AbstractRubyTemplate; -import org.sonar.api.web.RubyRailsWidget; -import org.sonar.api.web.WidgetCategory; -import org.sonar.api.web.WidgetProperties; -import org.sonar.api.web.WidgetProperty; -import org.sonar.api.web.WidgetPropertyType; -import org.sonar.api.web.WidgetScope; - -@WidgetCategory({"Global", "Misc"}) -@WidgetScope("GLOBAL") -@WidgetProperties( -{ - @WidgetProperty(key = "imageUrl", type = WidgetPropertyType.STRING, defaultValue = "http://www.sonarsource.org/wp-content/themes/sonarsource.org/images/sonar.png"), - @WidgetProperty(key = "alt", type = WidgetPropertyType.STRING, defaultValue = "SonarSource"), - @WidgetProperty(key = "link", type = WidgetPropertyType.STRING, defaultValue = "http://www.sonarsource.org"), - @WidgetProperty(key = "width", type = WidgetPropertyType.INTEGER, defaultValue = "100"), - @WidgetProperty(key = "height", type = WidgetPropertyType.INTEGER, defaultValue = "54") -}) -public class ImageWidget extends AbstractRubyTemplate implements RubyRailsWidget { - - public String getId() { - return "image"; - } - - public String getTitle() { - return "Image"; - } - - @Override - protected String getTemplatePath() { - return "/org/sonar/plugins/core/widgets/image.html.erb"; - } -} diff --git a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/image.html.erb b/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/image.html.erb deleted file mode 100644 index c0ab4d71810..00000000000 --- a/plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/image.html.erb +++ /dev/null @@ -1,3 +0,0 @@ - - <%= widget_properties['alt'] %> -