def METHOD_NAME(self):
    """Applies the name change and revert the edit control back to the
    static label.
    """
    if self.label_name.isVisible():
        return
    self.label_name.show()
    self.label_type.show()
    self.edit_name.hide()
    self.item_store.rename(self.item.name, self.edit_name.text())