public void resetChanges() {
   DataEditorRecordNavigationSettings configuration = getConfiguration();
   RecordNavigationTarget navigationTarget = configuration.getNavigationTarget();
   if (navigationTarget == RecordNavigationTarget.VIEWER) viewerRadioButton.setSelected(true);
   else if (navigationTarget == RecordNavigationTarget.EDITOR) editorRadioButton.setSelected(true);
   else if (navigationTarget == RecordNavigationTarget.ASK) askRadioButton.setSelected(true);
 }
  public void applyChanges() throws ConfigurationException {
    DataEditorRecordNavigationSettings configuration = getConfiguration();

    RecordNavigationTarget navigationTarget =
        viewerRadioButton.isSelected()
            ? RecordNavigationTarget.VIEWER
            : editorRadioButton.isSelected()
                ? RecordNavigationTarget.EDITOR
                : askRadioButton.isSelected()
                    ? RecordNavigationTarget.ASK
                    : RecordNavigationTarget.VIEWER;
    configuration.setNavigationTarget(navigationTarget);
  }