@Override
	protected void cancelCallback() {
		if (hasChanges) {
			int result = OptionDialog.showYesNoCancelDialog(panel, "Save Changes?",
				"These options are different from what is in the program.\n" +
					"Do you want to save them to the program?");
			if (result == OptionDialog.CANCEL_OPTION) {
				return;
			}
			if (result == OptionDialog.YES_OPTION) {
				panel.applyChanges();
			}
		}
		close();
	}
Constructor 

@param programs the set of programs to run analysis on
Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/analysis/AnalysisOptionsDialog.java