aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2012-02-08 18:35:13 +0100
committerSimon Brandhof <simon.brandhof@gmail.com>2012-02-08 18:52:12 +0100
commit369a961c7786ad98785788a8491c7daacf8a54a2 (patch)
tree55f30de085ebc2eac4160e8018ac31ab26e4c908 /plugins
parentb6f505f5626e4e0c65e79be2cefbe2050109ea84 (diff)
downloadsonarqube-369a961c7786ad98785788a8491c7daacf8a54a2.tar.gz
sonarqube-369a961c7786ad98785788a8491c7daacf8a54a2.zip
SONAR-2069 add description to the treemap widget
Diffstat (limited to 'plugins')
-rw-r--r--plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/TreemapWidget.java5
-rw-r--r--plugins/sonar-l10n-en-plugin/src/main/resources/org/sonar/l10n/core.properties3
2 files changed, 4 insertions, 4 deletions
diff --git a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/TreemapWidget.java b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/TreemapWidget.java
index b7b6640c325..261f2347ddf 100644
--- a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/TreemapWidget.java
+++ b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/widgets/TreemapWidget.java
@@ -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() {
diff --git a/plugins/sonar-l10n-en-plugin/src/main/resources/org/sonar/l10n/core.properties b/plugins/sonar-l10n-en-plugin/src/main/resources/org/sonar/l10n/core.properties
index 62901858f6c..37322733f53 100644
--- a/plugins/sonar-l10n-en-plugin/src/main/resources/org/sonar/l10n/core.properties
+++ b/plugins/sonar-l10n-en-plugin/src/main/resources/org/sonar/l10n/core.properties
@@ -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
#------------------------------------------------------------------------------
#