private void saveDefaults() {
		if (currentOptions == null) {
			return;
		}
		ToolOptions stringOptions = tool.getOptions(EncodedStringsPlugin.STRINGS_OPTION_NAME);

		stringOptions.setString(EncodedStringsPlugin.CHARSET_OPTIONNAME,
			currentOptions.charsetName());

		StringTranslationService sts = getSelectedStringTranslationService(false);
		stringOptions.setString(EncodedStringsPlugin.TRANSLATE_SERVICE_OPTIONNAME,
			sts != null ? sts.getTranslationServiceName() : null);

		stringOptions.setString(EncodedStringsPlugin.STRINGMODEL_FILENAME_OPTIONNAME,
			trigramModelFilename);
	}
For test/screen shot use

@return button
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/strings/EncodedStringsDialog.java