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

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

			// at this point, the changed data type might not be ours, but update anyway
			CategoryPath currentCategoryPath = currentDataType.getCategoryPath();
			Category category = dtm.getCategory(currentCategoryPath);
			originalCategoryPath = category.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