EmailMessage email = getNode().getDataObject().getActivity();
String oldName = email.getName();
String newName = (String) editor.getCellEditorValue();
if (!oldName.equals(newName)) {
UndoableEdit edit = new EntityRenameEdit(getController(), email, newName);
EntityRenamer renamer = getController().getView().getEntityRenamer(email);
if (renamer.setNewName(newName)) {
getController().fireGraphDataEdit(edit);
}
}
}