public void actionPerformed(ActionEvent e) {
JComboBox combo = (JComboBox) e.getSource();
Object item = combo.getSelectedItem();
if (item != null) {
if (item.toString().equals(NEW_IDENTITY)) {
PeakIdentitySetupDialog dialog = new PeakIdentitySetupDialog(
peakListRow);
dialog.setVisible(true);
} else if (item.toString().equals(EDIT_IDENTITY)) {
PeakIdentitySetupDialog dialog = new PeakIdentitySetupDialog(
peakListRow, peakListRow
.getPreferredPeakIdentity());
dialog.setVisible(true);
} else if (item.toString().equals(REMOVE_IDENTITY)) {
PeakIdentity identity = peakListRow
.getPreferredPeakIdentity();
if (identity != null) {
peakListRow.removePeakIdentity(identity);