@Override
	protected void cancelCallback() {
		// stop any active editors
		panel.cancel();

		if (hasChanges) {
			int result = OptionDialog.showYesNoCancelDialog(panel, "Save Changes?",
				"These options have changed.  Do you want to save them?");
			if (result == OptionDialog.CANCEL_OPTION) {
				return;
			}
			if (result == OptionDialog.YES_OPTION) {
				if (!applyChanges()) {
					return;
				}
			}
		}
		close();
	}
Construct a new OptionsDialog.

@param title dialog title
@param rootNodeName name to display for the root node in the tree
@param options editable options
@param listener listener notified when the apply button is hit.
Ghidra/Framework/Docking/src/main/java/docking/options/editor/OptionsDialog.java