From: Kirill Kalishev Date: Mon, 15 Feb 2010 16:01:32 +0000 (+0300) Subject: thread vialoations fixed X-Git-Tag: review-1~18 X-Git-Url: https://repo.or.cz/w/fedora-idea.git/commitdiff_plain/81a8a41d62dca192b8ed5c689a2a3918b1b880ba thread vialoations fixed --- diff --git a/platform/lang-impl/src/com/intellij/ide/util/scopeChooser/ScopeEditorPanel.java b/platform/lang-impl/src/com/intellij/ide/util/scopeChooser/ScopeEditorPanel.java index 19b71dbbf7..adeae19c03 100644 --- a/platform/lang-impl/src/com/intellij/ide/util/scopeChooser/ScopeEditorPanel.java +++ b/platform/lang-impl/src/com/intellij/ide/util/scopeChooser/ScopeEditorPanel.java @@ -299,7 +299,12 @@ public class ScopeEditorPanel { public void run() { myIsInUpdate = true; if (updateText && myCurrentScope != null) { - myPatternField.setText(myCurrentScope.getText()); + final String text = myCurrentScope.getText(); + SwingUtilities.invokeLater(new Runnable() { + public void run() { + myPatternField.setText(text); + } + }); } try { if (!myProject.isDisposed()) {