@Override
		public void dataTypeRenamed(DataTypeManager dtm, DataTypePath oldPath,
				DataTypePath newPath) {
			if (!isMyCategory(oldPath)) {
				return;
			}

			DataType currentDataType = getCurrentDataType();
			if (!isMyDataType(currentDataType, dtm, newPath)) {
				return;
			}

			String newName = currentDataType.getDisplayName();
			String nameInTextField = editorPanel.getEnumName();
			if (originalEnumName.equals(nameInTextField)) {
				// the name hasn't changed--just update it
				editorPanel.updateNameField(newName);
			}

			originalEnumName = newName;
			updateTitle(currentDataType);
		}
Prompts the user if the editor has unsaved changes. Saves the changes if
the user indicates to do so.
@return CANCEL (0) if the user canceled;
  SAVE (1) if the user saved changes;
  NO_SAVE (2) if the user did not save changes or no save was required;
  ERROR (3) if there was an error when the changes were applied.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/datamgr/editor/EnumEditorProvider.java