@Override
	public JComponent getHoverComponent(Program program, ProgramLocation programLocation,
			FieldLocation fieldLocation, Field field) {

		if (!enabled || programLocation == null || !(field instanceof ListingTextField)) {
			return null;
		}

		if (((ListingTextField) field).isClipped()) {
			String text = field.getTextWithLineSeparators();
			String convertToHtml = HTMLUtilities.toLiteralHTMLForTooltip(text);
			JToolTip toolTip = new JToolTip();
			toolTip.setTipText(convertToHtml);
			return toolTip;
		}

		return null;
	}
A hover service to show tool tip text for hovering over a truncated field, containing a "...",
in the listing.
The tooltip shows the entire text for that field.
This provides the hover capability for the TruncatedTextHoverPlugin and can
also be used to directly provide this hover capability to a listing.
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/codebrowser/hover/TruncatedTextListingHover.java