use of de.carne.certmgr.jfx.storepreferences.StorePreferencesController in project certmgr by hdecarne.
the class StoreController method onCmdStorePreferences.
@SuppressWarnings("unused")
@FXML
void onCmdStorePreferences(ActionEvent evt) {
try {
StorePreferencesController storePreferences = StorePreferencesDialog.load(this).init(this.storeProperty.get(), this.userPreferences.expertMode.getBoolean(false));
storePreferences.showAndWait();
} catch (IOException e) {
Alerts.unexpected(e).showAndWait();
}
}
use of de.carne.certmgr.jfx.storepreferences.StorePreferencesController in project certmgr by hdecarne.
the class StoreController method onCmdNewStore.
@SuppressWarnings("unused")
@FXML
void onCmdNewStore(ActionEvent evt) {
try {
StorePreferencesController createStore = StorePreferencesDialog.load(this).init(this.userPreferences.expertMode.getBoolean(false));
Optional<UserCertStore> createStoreResult = createStore.showAndWait();
if (createStoreResult.isPresent()) {
UserCertStore store = createStoreResult.get();
this.storeProperty.set(store);
updateStoreEntryView();
this.ctlStoreStatusLabel.setText(StoreI18N.formatSTR_TEXT_STORE_STATUS(store.storeHome()));
}
} catch (IOException e) {
Alerts.unexpected(e).showAndWait();
}
}
Aggregations