protected void selectionChanged() {

		updatingSelection(() -> {
			for (CompositeViewerModelListener listener : modelListeners) {
				listener.selectionChanged();
			}
			provider.contextChanged();
		});
	}
Sets the model's current selection to the indicated selection.  If the selection is empty,
it gets adjusted to the empty last line when in unlocked mode.
@param selection the new selection
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/compositeeditor/CompositeViewerModel.java