@Override
	protected void updateSelection(ByteBlockSelection selection) {
		AbstractSelectionPluginEvent event = blockSet.getPluginEvent(plugin.getName(), selection);
		liveSelection = null;
		currentSelection = event.getSelection();
		plugin.updateSelection(this, event, program);
		clipboardProvider.setSelection(currentSelection);
		updateTitle();
		contextChanged();
	}
Gets the text of the current {@link ProgramSelection}

@return the text
Ghidra/Features/ByteViewer/src/main/java/ghidra/app/plugin/core/byteviewer/ProgramByteViewerComponentProvider.java