private void createActions(String owner) {

		nextAction = new ActionBuilder("Search Next", owner)
				.toolBarIcon(Icons.DOWN_ICON)
				.toolBarGroup("A")
				.description("Search forward for 1 result")
				.helpLocation(new HelpLocation(HelpTopics.SEARCH, "Search_Next"))
				.enabledWhen(c -> canSearch())
				.onAction(c -> searchOnce(true))
				.buildAndInstallLocal(this);
		previousAction = new ActionBuilder("Search Previous", owner)
				.toolBarIcon(Icons.UP_ICON)
				.toolBarGroup("A")
				.description("Search backward for 1 result")
				.helpLocation(new HelpLocation(HelpTopics.SEARCH, "Search_Previous"))
				.enabledWhen(c -> canSearch())
				.onAction(c -> searchOnce(false))
				.buildAndInstallLocal(this);

		refreshAction = new ActionBuilder("Refresh Results", owner)
				.toolBarIcon(Icons.REFRESH_ICON)
				.toolBarGroup("A")
				.description(
					"Reload bytes from memory for each search result and show changes in red")
				.helpLocation(new HelpLocation(HelpTopics.SEARCH, "Refresh_Values"))
				.enabledWhen(c -> canProcessResults())
				.onAction(c -> refreshResults())
				.buildAndInstallLocal(this);

		toggleSearchPanelAction = new ToggleActionBuilder("Show Memory Search Controls", owner)
				.toolBarIcon(SHOW_SEARCH_PANEL_ICON)
				.toolBarGroup("Z")
				.description("Toggles showing the search controls")
				.helpLocation(new HelpLocation(HelpTopics.SEARCH, "Toggle_Search"))
				.selected(true)
				.onAction(c -> toggleShowSearchPanel())
				.buildAndInstallLocal(this);

		toggleScanPanelAction = new ToggleActionBuilder("Show Memory Scan Controls", owner)
				.toolBarIcon(SHOW_SCAN_PANEL_ICON)
				.toolBarGroup("Z")
				.description("Toggles showing the scan controls")
				.helpLocation(new HelpLocation(HelpTopics.SEARCH, "Toggle_Scan"))
				.onAction(c -> toggleShowScanPanel())
				.buildAndInstallLocal(this);

		toggleOptionsPanelAction = new ToggleActionBuilder("Show Options", owner)
				.toolBarIcon(SHOW_OPTIONS_ICON)
				.toolBarGroup("Z")
				.description("Toggles showing the search options panel")
				.helpLocation(new HelpLocation(HelpTopics.SEARCH, "Toggle_Options"))
				.onAction(c -> toggleShowOptions())
				.buildAndInstallLocal(this);

		// add standard table actions
		GhidraTable table = resultsPanel.getTable();
		addLocalAction(new MakeProgramSelectionAction(navigatable, owner, table));
		addLocalAction(new SelectionNavigationAction(owner, table));
		addLocalAction(new DeleteTableRowAction(table, owner) {
			@Override
			public void actionPerformed(ActionContext context) {
				super.actionPerformed(context);
				updateSubTitle();
				resultsPanel.itemDeleted();
			}
		});
	}
Performs a scan on the current results, keeping only the results that match the type of scan.
Note: this method is public to facilitate testing.

@param scanner the scanner to use to reduce the results.
Ghidra/Features/Base/src/main/java/ghidra/features/base/memsearch/gui/MemorySearchProvider.java