aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorSimon Brandhof <simon.brandhof@gmail.com>2012-05-09 09:46:49 +0200
committerSimon Brandhof <simon.brandhof@gmail.com>2012-05-09 09:50:14 +0200
commitf401b816393f6c5665246ac8b002be528316bbf5 (patch)
tree74daf3e680b530f54dce046df6221951ee2e81fe /plugins
parent0abcd3397f77eff87bb305449251514e3906a786 (diff)
downloadsonarqube-f401b816393f6c5665246ac8b002be528316bbf5.tar.gz
sonarqube-f401b816393f6c5665246ac8b002be528316bbf5.zip
SONAR-3456 Title of metric hotspot widget does not support i18n
Diffstat (limited to 'plugins')
-rw-r--r--plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/dashboards/HotspotsDashboard.java9
1 files changed, 1 insertions, 8 deletions
diff --git a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/dashboards/HotspotsDashboard.java b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/dashboards/HotspotsDashboard.java
index 4dc3717c14d..4ac76516ee1 100644
--- a/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/dashboards/HotspotsDashboard.java
+++ b/plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/dashboards/HotspotsDashboard.java
@@ -24,14 +24,13 @@ import org.sonar.api.web.DashboardLayout;
import org.sonar.api.web.DashboardTemplate;
/**
- * Hotspot dashboard for Sonar
+ * Default "Hotspots" dashboard
*
* @since 2.13
*/
public final class HotspotsDashboard extends DashboardTemplate {
private static final String HOTSPOT_METRIC = "hotspot_metric";
- private static final String TITLE_PROPERTY = "title";
private static final String METRIC_PROPERTY = "metric";
@Override
@@ -55,15 +54,12 @@ public final class HotspotsDashboard extends DashboardTemplate {
Dashboard.Widget widget = dashboard.addWidget(HOTSPOT_METRIC, 1);
widget.setProperty(METRIC_PROPERTY, "test_execution_time");
- widget.setProperty(TITLE_PROPERTY, "Longest unit tests");
widget = dashboard.addWidget(HOTSPOT_METRIC, 1);
widget.setProperty(METRIC_PROPERTY, "complexity");
- widget.setProperty(TITLE_PROPERTY, "Highest complexity");
widget = dashboard.addWidget(HOTSPOT_METRIC, 1);
widget.setProperty(METRIC_PROPERTY, "duplicated_lines");
- widget.setProperty(TITLE_PROPERTY, "Highest duplications");
}
private void addSecondColumn(Dashboard dashboard) {
@@ -71,15 +67,12 @@ public final class HotspotsDashboard extends DashboardTemplate {
Dashboard.Widget widget = dashboard.addWidget(HOTSPOT_METRIC, 2);
widget.setProperty(METRIC_PROPERTY, "uncovered_lines");
- widget.setProperty(TITLE_PROPERTY, "Highest untested lines");
widget = dashboard.addWidget(HOTSPOT_METRIC, 2);
widget.setProperty(METRIC_PROPERTY, "function_complexity");
- widget.setProperty(TITLE_PROPERTY, "Highest average method complexity");
widget = dashboard.addWidget(HOTSPOT_METRIC, 2);
widget.setProperty(METRIC_PROPERTY, "public_undocumented_api");
- widget.setProperty(TITLE_PROPERTY, "Most undocumented APIs");
}
} \ No newline at end of file