groupLink.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
if (groupLink.getText().equals(GROUP_LABEL)) {
PartitionController pc = Lookup.getDefault().lookup(PartitionController.class);
pc.group(model.getSelectedPartition());
refreshGrouped();
} else {
PartitionController pc = Lookup.getDefault().lookup(PartitionController.class);
pc.ungroup(model.getSelectedPartition());
refreshGrouped();