public void loadInstructions(ProgramSelection selection, InstructionSearchPlugin plugin) {

		MessagePanel msg = getMessagePanel();
		if (selection == null && msg != null) {
			msg.setMessageText(
				"Select instructions from the listing (and hit reload) to populate the table.",
				Messages.NORMAL);
		}

		if (selection != null && plugin.isSelectionValid(selection, this)) {

			if (getControlPanel() != null) {
				getControlPanel().getRangeWidget().updateSearchRangeBySelection();
			}

			// Load the instructions, but note that we only allow a single selection range.  If
			// there's more than one we will process the FIRST one, and display a warning message.
			populateSearchData(plugin.getCurrentProgram(), selection);
		}
	}
Loads the instructions in the given selection and displays them in the gui.

@param selection the current selection
@param plugin the parent plugin
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/instructionsearch/ui/InstructionSearchDialog.java