@Override
	public void dataTypeMoved(DataTypeManager dtm, DataTypePath oldPath, DataTypePath newPath) {

		if (dtm != originalDTM) {
			throw new AssertException("Listener only supports original DTM");
		}

		if (!isLoaded()) {
			return;
		}

		if (oldPath.equals(newPath)) {
			return;
		}

		String newName = newPath.getDataTypeName();
		String oldName = oldPath.getDataTypeName();

		CategoryPath newCategoryPath = newPath.getCategoryPath();
		CategoryPath oldCategoryPath = oldPath.getCategoryPath();

		// Does the old name match our original name.
		// Check originalCompositeId to ensure original type is managed
		if (originalCompositeId != DataTypeManager.NULL_DATATYPE_ID &&
			oldPath.equals(originalDataTypePath)) {

			viewDTM.withTransaction("Name Changed", () -> {
				viewDTM.clearUndoOnChange();
				originalDataTypePath = newPath;
				try {
					if (viewComposite.getName().equals(oldName)) {
						setName(newName);
					}
					if (!newCategoryPath.equals(oldCategoryPath)) {
						viewComposite.setCategoryPath(newCategoryPath);
					}
				}
				catch (InvalidNameException | DuplicateNameException e) {
					Msg.error(this, "Unexpected Exception: " + e.getMessage(), e);
				}
			});
			compositeInfoChanged();
		}
		else {
			// Check for managed datatype changing
			DataType originalDt = originalDTM.getDataType(newPath);
			if (!(originalDt instanceof DatabaseObject)) {
				return;
			}
			DataType dt = viewDTM.findMyDataTypeFromOriginalID(originalDTM.getID(originalDt));
			if (dt == null) {
				return;
			}
			viewDTM.withTransaction("Renamed Dependency", () -> {
				viewDTM.clearUndoOnChange();
				try {
					dt.setName(newName);
					if (!newCategoryPath.equals(oldCategoryPath)) {
						dt.setCategoryPath(newCategoryPath);
					}
				}
				catch (InvalidNameException | DuplicateNameException e) {
					Msg.error(this, "Unexpected Exception: " + e.getMessage(), e);
				}
			});
		}

		fireTableDataChanged();
		componentDataChanged();
	}
Returns whether the selected component(s) can be moved down (to the next higher index).
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/compositeeditor/CompEditorModel.java