From c25efe0b82fcb96abfc1c17eab989f7640876e8e Mon Sep 17 00:00:00 2001 From: Andras Toth Date: Mon, 13 Feb 2017 14:37:15 +0200 Subject: [PATCH] Plugin will now correctly who the error if the workspace failed to load --- .../com/hpe/adm/octane/ideplugins/intellij/ui/EntryPoint.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/hpe/adm/octane/ideplugins/intellij/ui/EntryPoint.java b/src/main/java/com/hpe/adm/octane/ideplugins/intellij/ui/EntryPoint.java index 773d70c4..9d71746d 100644 --- a/src/main/java/com/hpe/adm/octane/ideplugins/intellij/ui/EntryPoint.java +++ b/src/main/java/com/hpe/adm/octane/ideplugins/intellij/ui/EntryPoint.java @@ -54,7 +54,7 @@ public void createToolWindowContent(@NotNull Project project, @NotNull ToolWindo Runnable mainToolWindowContentControl = () -> { - EntryPoint.this.setContent(toolWindow, () -> new LoadingWidget(), "Loading Workspace"); + EntryPoint.this.setContent(toolWindow, () -> new LoadingWidget(), ""); Task.Backgroundable backgroundTask = new Task.Backgroundable(project, "Loading Workspace", false) { public void run(@NotNull ProgressIndicator indicator) { @@ -79,7 +79,7 @@ public void run(@NotNull ProgressIndicator indicator) { MetadataService metadataService = pluginModule.getInstance(MetadataService.class); metadataService.eagerInit(Entity.values()); - SwingUtilities.invokeLater(() -> { + SwingUtilities.invokeAndWait(() -> { //Create the presenter hierarchy, DI will inject view instances MainPresenter mainPresenter = pluginModule.getInstance(MainPresenter.class); setContent(toolWindow, mainPresenter.getView(), workspaceDisplayName);