]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-2069 add description to the treemap widget
authorSimon Brandhof <simon.brandhof@gmail.com>
Wed, 8 Feb 2012 17:35:13 +0000 (18:35 +0100)
committerSimon Brandhof <simon.brandhof@gmail.com>
Wed, 8 Feb 2012 17:52:12 +0000 (18:52 +0100)
plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/TreemapWidget.java
plugins/sonar-l10n-en-plugin/src/main/resources/org/sonar/l10n/core.properties

index b7b6640c3256702722628637171c194e914ac3cd..261f2347ddfb1326a20238aaec1a2d318ec8bcd5 100644 (file)
@@ -22,15 +22,14 @@ package org.sonar.plugins.core.widgets;
 import org.sonar.api.measures.CoreMetrics;
 import org.sonar.api.web.*;
 
-@WidgetCategory("Reporting")
 @WidgetProperties({
-  @WidgetProperty(key = "heightInPercents", type= WidgetPropertyType.INTEGER, defaultValue = "100", description = "Height, in percents of width"),
+  @WidgetProperty(key = "heightInPercents", type= WidgetPropertyType.INTEGER, defaultValue = "50", description = "Height in percents of width"),
   @WidgetProperty(key = "sizeMetric", type= WidgetPropertyType.METRIC, defaultValue = CoreMetrics.NCLOC_KEY, description = "Default metric for size"),
   @WidgetProperty(key = "colorMetric", type= WidgetPropertyType.METRIC, defaultValue = CoreMetrics.VIOLATIONS_DENSITY_KEY, description = "Default metric for color")
 })
 public class TreemapWidget extends AbstractRubyTemplate implements RubyRailsWidget {
   public String getId() {
-    return "tm"; // avoid conflict with CSS style "treemap"
+    return "treemap";
   }
 
   public String getTitle() {
index 62901858f6c859bf397fa528a7c1f225ae758929..37322733f53a345e7639dc8badd8ef7dc1638b8c 100644 (file)
@@ -736,7 +736,8 @@ widget.reviews_metrics.false_positives=False positives
 widget.reviews_metrics.unreviewed_violations=Unreviewed violations
 widget.reviews_metrics.on_new_code=On new code:
 
-
+widget.treemap.name=Treemap of components
+widget.treemap.description=Displays a treemap of all direct components of the selected resource
 
 #------------------------------------------------------------------------------
 #