code: private Table buildValueComparisonTable(
          CmsObject cms,
          final Component parent,
          CmsFile file1,
          CmsFile file2,
          CmsMacroResolver macroResolver)
      throws CmsException {
  
          CmsXmlDocumentComparison comp = new CmsXmlDocumentComparison(cms, file1, file2);
          CmsBeanTableBuilder<CmsValueCompareBean> builder = CmsBeanTableBuilder.newInstance(
              CmsValueCompareBean.class,
              A_CmsUI.get().getDisplayType().toString());
          builder.setMacroResolver(macroResolver);
  
          List<CmsValueCompareBean> rows = Lists.newArrayList();
          for (CmsElementComparison entry : comp.getElements()) {
              final String text1 = entry.getVersion1();
              final String text2 = entry.getVersion2();
              if (Objects.equal(text1, text2)) {
                  continue;
              }
              final CmsValueCompareBean row = new CmsValueCompareBean(cms, entry);
              row.getChangeType().addClickListener(new ClickListener() {
  
                  private static final long serialVersionUID = 1L;
  
                  public void buttonClick(ClickEvent event) {
  
                      CmsTextDiffPanel diffPanel = new CmsTextDiffPanel(text1, text2, true, true);
                      diffPanel.setSizeFull();
                      CmsHistoryDialog.openChildDialog(
                          parent,
                          diffPanel,
                          CmsVaadinUtils.getMessageText(Messages.GUI_HISTORY_DIALOG_COMPARE_VALUE_1, row.getXPath()));
                  }
  
              });
              rows.add(row);
          }
          Table table = builder.buildTable(rows);
          table.setSortEnabled(false);
          table.setWidth("100%");
          table.setPageLength(Math.min(rows.size(), 12));
          return table;
      }
docs: Builds the table for the content value comparisons.<p>
  
  @param cms the CMS context
  @param parent the parent widget for the table (does not need to be the direct parent)
  @param file1 the first file
  @param file2 the second file
  @param macroResolver the macro resolver to use for building the table
  
  @return the table with the content value comparisons
  
  @throws CmsException if something goes wrong