populate(row, k);
}
}
void populate(final int row, final Branch k) {
final GitwebLink c = Gerrit.getGitwebLink();
if (k.getCanDelete()) {
table.setWidget(row, 1, new CheckBox());
canDelete = true;
} else {
table.setText(row, 1, "");
}
table.setText(row, 2, k.getShortName());
if (k.getRevision() != null) {
table.setText(row, 3, k.getRevision().get());
} else {
table.setText(row, 3, "");
}
if (c != null) {
table.setWidget(row, 4, new Anchor(c.getLinkName(), false, c.toBranch(k
.getNameKey())));
}
final FlexCellFormatter fmt = table.getFlexCellFormatter();
String iconCellStyle = Gerrit.RESOURCES.css().iconCell();