void (ActionEvent e) { GitRepository selectedRepo = (GitRepository)repositorySelector.getSelectedItem(); descriptionLabel.setText(makeDescription(selectedRepo)); myCommitListWithDiffPanel.setCommits(myCommits.get(selectedRepo)); }