]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-3972 Default global dashboard name is now "Home", not "Projects"
authorFabrice Bellingard <fabrice.bellingard@sonarsource.com>
Wed, 5 Dec 2012 14:36:24 +0000 (15:36 +0100)
committerFabrice Bellingard <fabrice.bellingard@sonarsource.com>
Wed, 5 Dec 2012 14:46:24 +0000 (15:46 +0100)
plugins/sonar-core-plugin/src/main/java/org/sonar/plugins/core/dashboards/GlobalDefaultDashboard.java

index 4a84cd06756d557ef4c58f94ae6fd12b5744998a..d58987ec998b2ae31511c382509fece168b8576e 100644 (file)
@@ -43,35 +43,34 @@ public final class GlobalDefaultDashboard extends DashboardTemplate {
     this.filterDao = filterDao;
   }
 
-
   @Override
   public Dashboard createDashboard() {
     Dashboard dashboard = Dashboard.create()
-      .setGlobal(true)
-      .setLayout(DashboardLayout.TWO_COLUMNS);
+        .setGlobal(true)
+        .setLayout(DashboardLayout.TWO_COLUMNS);
 
     dashboard.addWidget(WelcomeWidget.ID, 1);
 
     MeasureFilterDto filter = findSystemFilter(MyFavouritesFilter.NAME);
     if (filter != null) {
       dashboard
-        .addWidget(MeasureFilterListWidget.ID, 1)
-        .setProperty(MeasureFilterListWidget.FILTER_PROPERTY, filter.getId().toString())
-        .setProperty(MeasureFilterListWidget.PAGE_SIZE_PROPERTY, "50");
+          .addWidget(MeasureFilterListWidget.ID, 1)
+          .setProperty(MeasureFilterListWidget.FILTER_PROPERTY, filter.getId().toString())
+          .setProperty(MeasureFilterListWidget.PAGE_SIZE_PROPERTY, "50");
     }
 
     filter = findSystemFilter(ProjectFilter.NAME);
     if (filter != null) {
       dashboard
-        .addWidget(MeasureFilterListWidget.ID, 2)
-        .setProperty(MeasureFilterListWidget.FILTER_PROPERTY, filter.getId().toString())
-        .setProperty(MeasureFilterListWidget.PAGE_SIZE_PROPERTY, "20");
+          .addWidget(MeasureFilterListWidget.ID, 2)
+          .setProperty(MeasureFilterListWidget.FILTER_PROPERTY, filter.getId().toString())
+          .setProperty(MeasureFilterListWidget.PAGE_SIZE_PROPERTY, "20");
 
       dashboard
-        .addWidget(MeasureFilterTreemapWidget.ID, 2)
-        .setProperty(MeasureFilterListWidget.FILTER_PROPERTY, filter.getId().toString())
-        .setProperty(MeasureFilterTreemapWidget.SIZE_METRIC_PROPERTY, "ncloc")
-        .setProperty(MeasureFilterTreemapWidget.COLOR_METRIC_PROPERTY, "violations_density");
+          .addWidget(MeasureFilterTreemapWidget.ID, 2)
+          .setProperty(MeasureFilterListWidget.FILTER_PROPERTY, filter.getId().toString())
+          .setProperty(MeasureFilterTreemapWidget.SIZE_METRIC_PROPERTY, "ncloc")
+          .setProperty(MeasureFilterTreemapWidget.COLOR_METRIC_PROPERTY, "violations_density");
     }
 
     return dashboard;
@@ -79,10 +78,10 @@ public final class GlobalDefaultDashboard extends DashboardTemplate {
 
   @Override
   public String getName() {
-    return "Projects";
+    return "Home";
   }
 
   private MeasureFilterDto findSystemFilter(String name) {
     return filterDao.findSystemFilterByName(name);
   }
-}
\ No newline at end of file
+}