View Javadoc

1   package net.sf.statcvs.pages;
2   
3   import net.sf.statcvs.Messages;
4   import net.sf.statcvs.output.ReportConfig;
5   import net.sf.statcvs.reports.CloudCommitTableReport;
6   
7   /**
8    * @author Benoit Xhenseval
9    * @version $Id: CloudCommitPageMaker.java,v 1.2 2009/04/22 08:20:42 benoitx Exp $
10   */
11  public class CloudCommitPageMaker {
12      private final ReportConfig config;
13  
14      public CloudCommitPageMaker(final ReportConfig config) {
15          this.config = config;
16      }
17  
18      public NavigationNode toFile() {
19          final CloudCommitTableReport developers = new CloudCommitTableReport(this.config);
20  
21          final Page page = this.config.createPage("cloud", Messages.getString("CLOUD"), this.config.getProjectName() + " "
22                  + Messages.getString("CLOUD"));
23              page.add(developers);
24  
25          return page;
26      }
27  }