Search in sources :

Example 1 with CertOptionsController

use of de.carne.certmgr.jfx.certoptions.CertOptionsController in project certmgr by hdecarne.

the class StoreController method onCmdNewCert.

@SuppressWarnings("unused")
@FXML
void onCmdNewCert(ActionEvent evt) {
    UserCertStore store = this.storeProperty.get();
    if (store != null) {
        try {
            CertOptionsController certOptions = loadStage(CertOptionsController.class).init(store, getSelectedStoreEntry(), this.userPreferences.expertMode.getBoolean(false));
            certOptions.showAndWait();
            updateStoreEntryView();
        } catch (IOException e) {
            Alerts.unexpected(e).showAndWait();
        }
    }
}
Also used : CertOptionsController(de.carne.certmgr.jfx.certoptions.CertOptionsController) IOException(java.io.IOException) UserCertStore(de.carne.certmgr.certs.UserCertStore) FXML(javafx.fxml.FXML)

Aggregations

UserCertStore (de.carne.certmgr.certs.UserCertStore)1 CertOptionsController (de.carne.certmgr.jfx.certoptions.CertOptionsController)1 IOException (java.io.IOException)1 FXML (javafx.fxml.FXML)1