]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-3113 Remove 'reverseColor' parameter as the metric direction is used to know...
authorJulien Lancelot <julien.lancelot@sonarsource.com>
Mon, 14 Apr 2014 08:09:49 +0000 (10:09 +0200)
committerJulien Lancelot <julien.lancelot@sonarsource.com>
Mon, 14 Apr 2014 08:12:12 +0000 (10:12 +0200)
plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/ProjectFileCloudWidget.java
plugins/sonar-core-plugin/src/main/resources/org/sonar/l10n/core.properties
plugins/sonar-core-plugin/src/main/resources/org/sonar/plugins/core/widgets/project_file_cloud.html.erb

index 5a36eb4d5b95998ed428b469af007ee0e4cbefbf..f712e68b0a1ff8d02f6d209be0a9c1f630d7b3b9 100644 (file)
@@ -29,9 +29,7 @@ import org.sonar.api.web.WidgetPropertyType;
   @WidgetProperty(key = "chartTitle", type = WidgetPropertyType.STRING),
   @WidgetProperty(key = "colorMetric", type = WidgetPropertyType.METRIC, defaultValue = CoreMetrics.COVERAGE_KEY, options = "type:PERCENT"),
   @WidgetProperty(key = "sizeMetric", type = WidgetPropertyType.METRIC, defaultValue = CoreMetrics.COMPLEXITY_KEY, options = {WidgetConstants.FILTER_OUT_NEW_METRICS}),
-  @WidgetProperty(key = "maxItems", type = WidgetPropertyType.INTEGER, defaultValue = "100"),
-  @WidgetProperty(key = "reverseColor", type = WidgetPropertyType.BOOLEAN, defaultValue = "false")
-
+  @WidgetProperty(key = "maxItems", type = WidgetPropertyType.INTEGER, defaultValue = "100")
 })
 public class ProjectFileCloudWidget extends CoreWidget {
   public ProjectFileCloudWidget() {
index 6560a26219e6372602097bde4464bb0e5dff5f7c..1ac5d3db4948234856c593558ba2b7777adbfbbd 100644 (file)
@@ -1163,7 +1163,6 @@ widget.project_file_cloud.property.colorMetric.name=Color Metric
 widget.project_file_cloud.property.sizeMetric.name=Size Metric
 widget.project_file_cloud.property.maxItems.name=Max components
 widget.project_file_cloud.property.maxItems.desc=Maximum number of components to show
-widget.project_file_cloud.property.reverseColor.name=Reverse Order on Color
 
 widget.time_machine.name=History Table
 widget.time_machine.description=Displays up to 10 metrics in a table, showing their value for a specified number of past snapshots.
index 68c152a6f51e2b6c3006e70a45bc24c0f701236e..74d6b4a8cee0eec5479040813ed4ab9afdbe7990 100644 (file)
@@ -4,7 +4,6 @@
   sizeMetric = widget_properties['sizeMetric']
   chartTitle = widget_properties['chartTitle']
   maxItems = widget_properties['maxItems'].to_i
-  reverseColor = widget_properties['reverseColor']
 %>
 
 <div class="word-cloud-widget" id="<%= containerId %>">
@@ -64,8 +63,7 @@
         .metricsPriority(['<%= colorMetric.name -%>', '<%= sizeMetric.name -%>'])
         .components(data.components)
         .options({
-          baseUrl: baseUrl + '/dashboard/index/',
-          reverseColor: <%= reverseColor -%>
+          baseUrl: baseUrl + '/dashboard/index/'
         })
         .render('#<%= containerId -%>');