aboutsummaryrefslogtreecommitdiffstats
path: root/plugins
diff options
context:
space:
mode:
authorsimonbrandhof <simon.brandhof@gmail.com>2011-01-03 15:44:23 +0000
committersimonbrandhof <simon.brandhof@gmail.com>2011-01-03 15:44:23 +0000
commita6e39adc0865d35f405adb3cd709c1d4b7f7fdf7 (patch)
treeda9065a70c2b9deff16f3f9b1151a6b8ed484967 /plugins
parent84895c287349677e47e16ce65674420d2038cf5e (diff)
downloadsonarqube-a6e39adc0865d35f405adb3cd709c1d4b7f7fdf7.tar.gz
sonarqube-a6e39adc0865d35f405adb3cd709c1d4b7f7fdf7.zip
Violations viewer : do not display the empty period filter
Diffstat (limited to 'plugins')
-rw-r--r--plugins/sonar-core-gwt/src/main/java/org/sonar/plugins/core/violationsviewer/client/ViolationsViewer.java6
1 files changed, 4 insertions, 2 deletions
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 08659d04661..137ad9f37eb 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
@@ -75,8 +75,10 @@ public class ViolationsViewer extends Page {
initFilters();
- header.setWidget(0, 1, periodBox);
- header.getCellFormatter().setStyleName(0, 1, "thin cell right");
+ if (periodBox.getItemCount() > 1) {
+ header.setWidget(0, 1, periodBox);
+ header.getCellFormatter().setStyleName(0, 1, "thin cell right");
+ }
header.setWidget(0, 2, filterBox);
header.getCellFormatter().setStyleName(0, 2, "thin cell right");