in src/main/java/org/apache/openwhisk/intellij/explorer/dialog/trigger/ui/TriggerCreationManagerDialogForm.java [91:108]
private void refreshWhiskTree() {
EventUtils.publish(project, RefreshWhiskTreeListener.TOPIC, RefreshWhiskTreeListener::refreshWhiskTree);
WhiskService service = ServiceManager.getService(project, WhiskService.class);
try {
List<WhiskEndpoint> endpoints = JsonParserUtils.parseWhiskEndpoints(service.getEndpoints());
if (!endpoints.isEmpty()) {
EventUtils.publish(project, RefreshWhiskTreeListener.TOPIC, RefreshWhiskTreeListener::refreshWhiskTree);
} else {
final String msg = "There are no endpoints saved.";
LOG.info(msg);
NOTIFIER.notify(project, msg, NotificationType.INFORMATION);
}
} catch (IOException e) {
final String msg = "Entities cannot be loaded.";
LOG.error(msg, e);
NOTIFIER.notify(project, msg, NotificationType.ERROR);
}
}