}
}
private void doShowResources(UserRequest ureq) {
// always refresh data model, maybe it has changed
RepositoryTableModel repoTableModel = new RepositoryTableModel(resourceTrans);
BGContextManager contextManager = BGContextManagerImpl.getInstance();
List repoTableModelEntries = contextManager.findRepositoryEntriesForBGContext(businessGroup.getGroupContext());
repoTableModel.setEntries(repoTableModelEntries);
// init table controller only once
if (resourcesCtr == null) {
TableGuiConfiguration tableConfig = new TableGuiConfiguration();
tableConfig.setTableEmptyMessage(translate("resources.noresources"));
resourcesCtr = new TableController(tableConfig, ureq, getWindowControl(), resourceTrans, null);
listenTo(resourcesCtr);
resourcesVC = createVelocityContainer("resources");
repoTableModel.addColumnDescriptors(resourcesCtr, translate("resources.launch"), false);
resourcesVC.put("resources", resourcesCtr.getInitialComponent());
}
// add table model to table
resourcesCtr.setTableDataModel(repoTableModel);
mainPanel.setContent(resourcesVC);