@Override
		public void categoryRenamed(DataTypeManager dtm, CategoryPath oldPath,
				CategoryPath newPath) {

			if (!originalCategoryPath.equals(oldPath)) {
				return;
			}

			Category newCategory = dtm.getCategory(newPath);
			if (newCategory == null) {
				// this can happen when a category is somehow created and then deleted before the
				// events have gone out
				return;
			}

			originalCategoryPath = newCategory.getCategoryPath();
			dataTypeManager = dtm;
			editorPanel.updateCategoryField(getCategoryText());
		}
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