Search in sources :

Example 1 with UserPreferences

use of de.carne.certmgr.jfx.store.UserPreferences in project certmgr by hdecarne.

the class PreferencesController method call.

@Override
@Nullable
public UserPreferences call(@Nullable ButtonType param) {
    UserPreferences dialogResult = null;
    if (param != null && ButtonType.APPLY.getButtonData() == param.getButtonData()) {
        this.preferencesParam.get().expertMode.put(this.ctlExpertModeOption.isSelected());
        try {
            this.preferencesParam.get().sync();
            dialogResult = this.preferencesParam.get();
        } catch (BackingStoreException e) {
            Alerts.unexpected(e).showAndWait();
        }
    }
    return dialogResult;
}
Also used : UserPreferences(de.carne.certmgr.jfx.store.UserPreferences) BackingStoreException(java.util.prefs.BackingStoreException) Nullable(de.carne.check.Nullable)

Aggregations

UserPreferences (de.carne.certmgr.jfx.store.UserPreferences)1 Nullable (de.carne.check.Nullable)1 BackingStoreException (java.util.prefs.BackingStoreException)1