Search in sources :

Example 1 with CertExportController

use of de.carne.certmgr.jfx.certexport.CertExportController in project certmgr by hdecarne.

the class StoreController method onCmdExportCert.

@SuppressWarnings("unused")
@FXML
void onCmdExportCert(ActionEvent evt) {
    UserCertStoreEntry exportEntry = getSelectedStoreEntry();
    if (exportEntry != null) {
        try {
            CertExportController exportController = loadStage(CertExportController.class).init(exportEntry);
            exportController.showAndWait();
            updateStoreEntryView();
        } catch (IOException e) {
            Alerts.unexpected(e).showAndWait();
        }
    }
}
Also used : CertExportController(de.carne.certmgr.jfx.certexport.CertExportController) IOException(java.io.IOException) UserCertStoreEntry(de.carne.certmgr.certs.UserCertStoreEntry) FXML(javafx.fxml.FXML)

Aggregations

UserCertStoreEntry (de.carne.certmgr.certs.UserCertStoreEntry)1 CertExportController (de.carne.certmgr.jfx.certexport.CertExportController)1 IOException (java.io.IOException)1 FXML (javafx.fxml.FXML)1