public void setHasSelection(ListingActionContext context) {
		ProgramSelection selection = context.getSelection();
		boolean hasSelection = selection != null && !selection.isEmpty();
		applyToSelection.setEnabled(hasSelection);
		applyToSelection.setSelected(hasSelection && selection.contains(context.getAddress()));
		overwriteExistingEquates.setEnabled(!applyToCurrent.isSelected());
	}
Set the state of the some buttons on the dialog.  ie: if the user has selected
a range of addresses we should automatically set the "selection" radio button
to the selected state.

@param context The current context.
Ghidra/Features/Base/src/main/java/ghidra/app/util/bean/SetEquateDialog.java