private void updatePopupMenuName(boolean hasSelection) {
		if (hasSelection) {
			getPopupMenuData().setMenuPath(new String[] { "Expand All Data In Selection" });
			setDescription("Open all data recursively in the current selection.");
		}
		else {
			getPopupMenuData().setMenuPath(new String[] { "Expand All Data" });
			setDescription("Open all data recursively from the current location downward.");
		}
	}
Action for recursively expanding an expandable data element in the listing.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/codebrowser/actions/ExpandAllDataAction.java