Source:
private void createRevisionsTable(org.eclipse.che.ide.Resources coreRes) { Column<Revision, String> idColumn = new Column<Revision, String>(new TextCell()) { @Override public String getValue(Revision revision) { return revision.getId().substring(0, 8) + "..."; } }; Column<Revision, String> dateColumn = new Column<Revision, String>(new TextCell()) { @Override public String getValue(Revision revision) { return dateTimeFormatter.getFormattedDate(revision.getCommitTime()); } }; Column<Revision, String> authorColumn = new Column<Revision, String>(new TextCell()) { @Override public String getValue(Revision revision) { return revision.getCommitter().getName(); } }; Column<Revision, String> commentColumn = new Column<Revision, String>(new TextCell()) { @Override public String getValue(Revision revision) { return revision.getMessage().substring(0, 50); } }; revisions = new CellTable<Revision>(15, coreRes); revisions.setWidth("100%"); revisions.addColumn(idColumn, locale.viewRevertRevisionTableIdTitle()); revisions.setColumnWidth(idColumn, "10%"); revisions.addColumn(dateColumn, locale.viewRevertRevisionTableDateTitle()); revisions.setColumnWidth(dateColumn, "20%"); revisions.addColumn(authorColumn, locale.viewRevertRevisionTableAuthorTitle()); revisions.setColumnWidth(authorColumn, "20%"); revisions.addColumn(commentColumn, locale.viewRevertRevisionTableCommentTitle()); revisions.setColumnWidth(commentColumn, "50%"); this.selectionModel = new SingleSelectionModel<Revision>(); this.selectionModel.addSelectionChangeHandler( new SelectionChangeEvent.Handler() { @Override public void onSelectionChange(SelectionChangeEvent event) { Revision selectedObject = selectionModel.getSelectedObject(); delegate.onRevisionSelected(selectedObject); } }); revisions.setSelectionModel(this.selectionModel); this.revisionsPanel.add(revisions); }

Target:
private void createRevisionsTable(org.eclipse.che.ide.Resources coreRes) { Column<Revision, String> idColumn = new Column<Revision, String>(new TextCell()) { @Override public String getValue(Revision revision) { return revision.getId().substring(0, 8) + "..."; } }; Column<Revision, String> dateColumn = new Column<Revision, String>(new TextCell()) { @Override public String getValue(Revision revision) { return dateTimeFormatter.getFormattedDate(revision.getCommitTime()); } }; Column<Revision, String> authorColumn = new Column<Revision, String>(new TextCell()) { @Override public String getValue(Revision revision) { return revision.getCommitter().getName(); } }; Column<Revision, String> commentColumn = new Column<Revision, String>(new TextCell()) { @Override public String getValue(Revision revision) { return revision.getMessage().substring(0, 50); } }; revisions = new CellTable<>(15, coreRes); revisions.setWidth("100%"); revisions.addColumn(idColumn, locale.viewRevertRevisionTableIdTitle()); revisions.setColumnWidth(idColumn, "10%"); revisions.addColumn(dateColumn, locale.viewRevertRevisionTableDateTitle()); revisions.setColumnWidth(dateColumn, "20%"); revisions.addColumn(authorColumn, locale.viewRevertRevisionTableAuthorTitle()); revisions.setColumnWidth(authorColumn, "20%"); revisions.addColumn(commentColumn, locale.viewRevertRevisionTableCommentTitle()); revisions.setColumnWidth(commentColumn, "50%"); this.selectionModel = new SingleSelectionModel<>(); this.selectionModel.addSelectionChangeHandler( event -> { Revision selectedObject = selectionModel.getSelectedObject(); delegate.onRevisionSelected(selectedObject); }); revisions.setSelectionModel(this.selectionModel); this.revisionsPanel.add(revisions); }