From: simonbrandhof Date: Mon, 3 Jan 2011 15:44:23 +0000 (+0000) Subject: Violations viewer : do not display the empty period filter X-Git-Tag: 2.6~201 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a6e39adc0865d35f405adb3cd709c1d4b7f7fdf7;p=sonarqube.git Violations viewer : do not display the empty period filter --- 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");