public void actionPerformed()

in src/main/java/org/apache/openwhisk/intellij/explorer/toolwindow/action/DeletePackageAction.java [60:74]


    public void actionPerformed(@NotNull AnActionEvent e) {
        if (whiskAuth != null && whiskPackage != null) {
            try {
                whiskPackageService.getWhiskPackage(whiskAuth, whiskPackage.getNamespace(), whiskPackage.getName()).ifPresent(whiskPackageWithActions -> {
                    if ((new DeletePackageDialog(e.getProject(), whiskPackageWithActions)).showAndGet()) {
                        deletePackage(e, whiskPackageWithActions);
                    }
                });
            } catch (IOException ex) {
                final String msg = "The package cannot be deleted: " + whiskPackage.getName();
                LOG.error(msg, ex);
                NOTIFIER.notify(e.getProject(), msg, NotificationType.ERROR);
            }
        }
    }