]> source.dussan.org Git - sonarqube.git/commit
SONAR-3323 Display tab/page/widget only when required measures exist
authorFabrice Bellingard <bellingard@gmail.com>
Thu, 22 Mar 2012 13:44:11 +0000 (14:44 +0100)
committerFabrice Bellingard <bellingard@gmail.com>
Thu, 22 Mar 2012 13:48:17 +0000 (14:48 +0100)
commit3475a5114e4282de534d477980acaa6b36714d39
treee66fffd78582ad072cbf37589c8ac15d1ac379b8
parent4807b56a875275c36ad1e7aaaf5f6975fe4a4a8b
SONAR-3323 Display tab/page/widget only when required measures exist

=> new annotation @RequiredMeasure(mandatory={}, oneOf={}) that can
   be applied on any views.
   Tested on pages, tabs and widgets
sonar-plugin-api/src/main/java/org/sonar/api/web/RequiredMeasures.java [new file with mode: 0644]
sonar-server/src/main/java/org/sonar/server/ui/JRubyFacade.java
sonar-server/src/main/java/org/sonar/server/ui/ViewProxy.java
sonar-server/src/main/java/org/sonar/server/ui/Views.java
sonar-server/src/main/webapp/WEB-INF/app/controllers/dashboard_controller.rb
sonar-server/src/main/webapp/WEB-INF/app/controllers/drilldown_controller.rb
sonar-server/src/main/webapp/WEB-INF/app/controllers/resource_controller.rb
sonar-server/src/main/webapp/WEB-INF/app/models/snapshot.rb
sonar-server/src/main/webapp/WEB-INF/app/views/layouts/_layout.html.erb
sonar-server/src/test/java/org/sonar/server/ui/ViewProxyTest.java
sonar-server/src/test/java/org/sonar/server/ui/ViewsTest.java