private void showOptions() {
		OptionValidator validator = optionList -> {
			try {
				getSelectedExporter().setOptions(optionList);
				return null;
			}
			catch (OptionException e) {
				return e.getMessage();   // OptionExceptions should have good message as to what is wrong
			}
			catch (Exception e) {
				return "Unexpected exception validating options: " + e.getMessage();
			}
		};
		AddressFactoryService svc = (domainObject instanceof Program) ? null : this;
		OptionsDialog optionsDialog = new OptionsDialog(options, validator, svc);
		optionsDialog
				.setHelpLocation(new HelpLocation("ExporterPlugin", getAnchorForSelectedFormat()));
		tool.showDialog(optionsDialog);
		if (!optionsDialog.wasCancelled()) {
			options = optionsDialog.getOptions();
		}

	}
Construct a new ExporterDialog for exporting a program, optionally only exported a
selected region.

@param tool the tool that launched this dialog.
@param domainFile the program file to export. (may be proxy)
@param domainObject the program to export if already open, otherwise null.
@param selection the current program selection (ignored for FrontEnd Tool).
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/exporter/ExporterDialog.java