Skip to content

Commit 121490e

Browse files
#1951387: [Test]Error when deleting function/spring/web app
1 parent fdb7a4e commit 121490e

File tree

1 file changed

+5
-2
lines changed
  • PluginsAndFeatures/azure-toolkit-for-eclipse/com.microsoft.azuretools.core/src/com/microsoft/azure/toolkit/eclipse/common/messager

1 file changed

+5
-2
lines changed

PluginsAndFeatures/azure-toolkit-for-eclipse/com.microsoft.azuretools.core/src/com/microsoft/azure/toolkit/eclipse/common/messager/EclipseAzureMessager.java

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,12 @@ public boolean show(IAzureMessage raw) {
2727
switch (raw.getType()) {
2828
case ALERT:
2929
case CONFIRM:
30+
final boolean[] result = new boolean[]{true};
3031
final String title = Optional.ofNullable(raw.getTitle()).orElse(DEFAULT_TITLE);
31-
MessageDialog.openConfirm(null, title, raw.getContent());
32-
return true;
32+
AzureTaskManager.getInstance().runLaterAsObservable(()->{
33+
result[0] = MessageDialog.openConfirm(null, title, raw.getContent());
34+
}).toBlocking().subscribe();
35+
return result[0];
3336
default:
3437
}
3538
Operation op = Operation.current();

0 commit comments

Comments
 (0)