@Override
	protected void dialogShown() {
		searchButton.setEnabled(false);
		clearStatusText();
		searchText = null;

		// To track cancelled, assume that the dialog is always in a cancelled state unless the 
		// user actually performed a search.
		isCancelled = true;
	}
A dialog to gather input for performing a search over decompiled text.
Ghidra/Features/DecompilerDependent/src/main/java/ghidra/app/plugin/core/search/DecompilerTextFinderDialog.java