@Override
	protected void programChanged(Program program) {
		if (program == null) {
			getMenuBarData().setMenuItemName("S&ave As...");
		}
		else {
			String progName = program.getDomainFile().getName();
			getMenuBarData().setMenuItemNamePlain("Save '%s' As...".formatted(progName));
			getMenuBarData().setMnemonic('a');
			setDescription("<html>Save '%s' As".formatted(HTMLUtilities.escapeHTML(progName)));
		}
	}
Action class for the "Save As" action
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/progmgr/SaveAsProgramAction.java