aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/sonar-core-gwt
diff options
context:
space:
mode:
authorsimonbrandhof <simon.brandhof@gmail.com>2010-12-23 00:15:40 +0000
committersimonbrandhof <simon.brandhof@gmail.com>2010-12-23 00:15:40 +0000
commit6e7dacd3a82d2de6a1cf25694d13ff3b9a86c506 (patch)
treeb8e15b9dc42827e826541dcb5ce49d86b49fe167 /plugins/sonar-core-gwt
parent1b9e5dbd00d8c13328a3add55e734f6fc9044c2c (diff)
downloadsonarqube-6e7dacd3a82d2de6a1cf25694d13ff3b9a86c506.tar.gz
sonarqube-6e7dacd3a82d2de6a1cf25694d13ff3b9a86c506.zip
update labels of variation select boxes
Diffstat (limited to 'plugins/sonar-core-gwt')
-rw-r--r--plugins/sonar-core-gwt/src/main/java/org/sonar/plugins/core/violationsviewer/client/I18nConstants.java3
-rw-r--r--plugins/sonar-core-gwt/src/main/java/org/sonar/plugins/core/violationsviewer/client/ViolationsViewer.java4
2 files changed, 5 insertions, 2 deletions
diff --git a/plugins/sonar-core-gwt/src/main/java/org/sonar/plugins/core/violationsviewer/client/I18nConstants.java b/plugins/sonar-core-gwt/src/main/java/org/sonar/plugins/core/violationsviewer/client/I18nConstants.java
index 5a1767f0eb0..4d2fa97d408 100644
--- a/plugins/sonar-core-gwt/src/main/java/org/sonar/plugins/core/violationsviewer/client/I18nConstants.java
+++ b/plugins/sonar-core-gwt/src/main/java/org/sonar/plugins/core/violationsviewer/client/I18nConstants.java
@@ -31,6 +31,9 @@ public interface I18nConstants extends com.google.gwt.i18n.client.Constants {
@DefaultStringValue("No filters")
String noFilters();
+ @DefaultStringValue("Added...")
+ String addedPeriod();
+
@DefaultStringValue("Expand:")
String expand();
diff --git a/plugins/sonar-core-gwt/src/main/java/org/sonar/plugins/core/violationsviewer/client/ViolationsViewer.java b/plugins/sonar-core-gwt/src/main/java/org/sonar/plugins/core/violationsviewer/client/ViolationsViewer.java
index 804b143edb8..99de6907d55 100644
--- a/plugins/sonar-core-gwt/src/main/java/org/sonar/plugins/core/violationsviewer/client/ViolationsViewer.java
+++ b/plugins/sonar-core-gwt/src/main/java/org/sonar/plugins/core/violationsviewer/client/ViolationsViewer.java
@@ -127,7 +127,7 @@ public class ViolationsViewer extends Page {
private void initPeriodBox() {
periodBox = new ListBox();
periodBox.setStyleName("small");
- periodBox.addItem(I18nConstants.INSTANCE.noFilters());
+ periodBox.addItem(I18nConstants.INSTANCE.addedPeriod());
initPeriod(1);
initPeriod(2);
@@ -141,7 +141,7 @@ public class ViolationsViewer extends Page {
if (period != null) {
Date date = JsonUtils.parseDateTime(Configuration.getParameter("period" + periodIndex + "_date"));
if (date != null) {
- periodBox.addItem(period);
+ periodBox.addItem("Added " + period);
dateFilters.add(date);
}
}