Skip to content

Commit ea6284a

Browse files
committed
Fix possible message prompt issue, AB#1980657
1 parent 3ba4d45 commit ea6284a

File tree

1 file changed

+4
-1
lines changed
  • PluginsAndFeatures/azure-toolkit-for-intellij/azure-sdk-reference-book/src/main/java/com/microsoft/azure/toolkit/intellij/azuresdk/referencebook

1 file changed

+4
-1
lines changed

PluginsAndFeatures/azure-toolkit-for-intellij/azure-sdk-reference-book/src/main/java/com/microsoft/azure/toolkit/intellij/azuresdk/referencebook/AzureSdkProjectDependencyPanel.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,8 @@
2828

2929
import javax.annotation.Nonnull;
3030
import javax.swing.*;
31+
import javax.swing.text.Document;
32+
import java.io.StringReader;
3133
import java.util.Optional;
3234

3335
public class AzureSdkProjectDependencyPanel {
@@ -133,7 +135,8 @@ private void createUIComponents() {
133135

134136
private class DependencyNotificationMessager implements IAzureMessager {
135137
@Override
136-
public boolean show(IAzureMessage message) {
138+
public synchronized boolean show(IAzureMessage message) {
139+
paneMessage.setDocument(paneMessage.getEditorKit().createDefaultDocument());
137140
paneMessage.setText(message.getMessage().toString());
138141
return true;
139142
}

0 commit comments

Comments
 (0)