final GWTJahiaNodeVersion version = (GWTJahiaNodeVersion) model;
button.addSelectionListener(new SelectionListener<ButtonEvent>() {
@Override
public void componentSelected(ButtonEvent ce) {
// add 30s to the date to be sure to display the right version
new CompareEngine(version.getNode().getUUID(), VersioningTabItem.this.locale, false, version.getNode().getPath(), new Date(version.getDate().getTime() + (30l * 1000l)), engine, version.getWorkspace(), version.getLabel()).show();
}
});
buttonBar.add(button);
return buttonBar;
}