@Override
	public boolean isEnabledForContext(ActionContext context) {
		if (hasIncompleteFieldEntry()) {
			return false;
		}
		CompositeViewerDataTypeManager<?> viewDTM = model.getViewDataTypeManager();
		boolean canUndo = viewDTM.canUndo();
		setEnabled(canUndo);
		String description = DESCRIPTION + (canUndo ? (": " + viewDTM.getUndoName()) : "");
		setDescription(description);
		return canUndo;
	}
{@link UndoChangeAction} facilitates an undo of recent composite editor changes.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/compositeeditor/UndoChangeAction.java