Skip to content

Commit

Permalink
Plugin will now correctly who the error if the workspace failed to load
Browse files Browse the repository at this point in the history
  • Loading branch information
Andras Toth committed Feb 13, 2017
1 parent 7418052 commit c25efe0
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -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);
Expand Down

0 comments on commit c25efe0

Please sign in to comment.