private void updatePopupPath(DockingAction action, String actionString, ProgramLocation loc) {

		String endString = "";
		if (action == historyAction) {
			endString = "...";
		}

		if (loc instanceof FunctionRepeatableCommentFieldLocation) {
			action.getPopupMenuData()
					.setMenuPath(new String[] { "Comments",
						actionString + " Repeatable Comment" + endString });
			return;
		}

		if (loc instanceof PlateFieldLocation) {
			action.getPopupMenuData()
					.setMenuPath(
						new String[] { "Comments", actionString + " Plate Comment" + endString });
			return;
		}

		CommentFieldLocation cfLoc = (CommentFieldLocation) loc;
		CommentType type = cfLoc.getCommentType();
		switch (type) {
			case PRE:
				action.getPopupMenuData()
						.setMenuPath(
							new String[] { "Comments", actionString + " Pre-Comment" + endString });
				break;

			case POST:
				action.getPopupMenuData()
						.setMenuPath(new String[] { "Comments",
							actionString + " Post-Comment" + endString });
				break;

			case EOL:
				action.getPopupMenuData()
						.setMenuPath(
							new String[] { "Comments", actionString + " EOL Comment" + endString });
				break;

			case REPEATABLE:
				action.getPopupMenuData()
						.setMenuPath(new String[] { "Comments",
							actionString + " Repeatable Comment" + endString });
				break;

			default:
				break;
		}
	}
Called by the deleteAction to delete an end-of-line comment.
@param program the {@link Program} for which to act
@param loc the {@link ProgramLocation} for which to delete the comment
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/comments/CommentsPlugin.java