setPageTitle(Util.C.projectListTitle());
createProjectLinkPanel = new VerticalPanel();
createProjectLinkPanel.setStyleName(Gerrit.RESOURCES.css()
.createProjectLink());
createProjectLinkPanel.add(new Hyperlink(Util.C.headingCreateProject(),
PageLinks.ADMIN_CREATE_PROJECT));
add(createProjectLinkPanel);
projects = new ProjectsTable() {
@Override
protected void onOpenRow(final int row) {
History.newItem(link(getRowItem(row)));
}
private String link(final ProjectInfo item) {
return Dispatcher.toProjectAdmin(item.name_key(), ProjectScreen.INFO);
}
@Override
protected void populate(final int row, final ProjectInfo k) {
table.setWidget(row, 1, new Hyperlink(k.name(), link(k)));
table.setText(row, 2, k.description());
setRowItem(row, k);
}
};