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() {
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
#------------------------------------------------------------------------------
#