in src/main/java/org/apache/openwhisk/intellij/explorer/toolwindow/action/DeleteActionAction.java [52:71]
public void actionPerformed(@NotNull AnActionEvent e) {
if (whiskAuth != null && whiskActionMetaData != null) {
if ((new DeleteActionDialog(e.getProject())).showAndGet()) {
try {
whiskActionService.deleteWhiskActions(whiskAuth, whiskActionMetaData.getWhiskPackage(), whiskActionMetaData.getName())
.ifPresent(deletedAction -> {
String msg = deletedAction.getName() + " action is deleted";
LOG.info(msg);
NOTIFIER.notify(e.getProject(), msg, NotificationType.INFORMATION);
ActionManager.getInstance().getAction("WhiskExplorer.Actions.Controls.Refresh").actionPerformed(e);
});
} catch (IOException ex) {
final String msg = "The action cannot be deleted: " + whiskActionMetaData.getName();
LOG.error(msg, ex);
NOTIFIER.notify(e.getProject(), msg, NotificationType.ERROR);
}
}
}
}