+ Display display = activeShell.getDisplay();
+ CompletableFuture<List<Resource>> result = new CompletableFuture<>();
+ result
+ .exceptionally(e -> Collections.emptyList())
+ .thenAccept(dnElements -> {
+ if (!dnElements.isEmpty()) {
+ try {
+ openDiagram(display, dnElements);
+ } catch (DatabaseException e) {
+ LOGGER.error("Failed to open district network diagram with selection {}", dnElements); //$NON-NLS-1$
+ }
+ }
+ });
+