diff options
author | simonbrandhof <simon.brandhof@gmail.com> | 2011-01-03 15:44:23 +0000 |
---|---|---|
committer | simonbrandhof <simon.brandhof@gmail.com> | 2011-01-03 15:44:23 +0000 |
commit | a6e39adc0865d35f405adb3cd709c1d4b7f7fdf7 (patch) | |
tree | da9065a70c2b9deff16f3f9b1151a6b8ed484967 /plugins | |
parent | 84895c287349677e47e16ce65674420d2038cf5e (diff) | |
download | sonarqube-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.java | 6 |
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"); |