thread vialoations fixed
authorKirill Kalishev <kirill.kalishev@jetbrains.com>
Mon, 15 Feb 2010 16:01:32 +0000 (15 19:01 +0300)
committerKirill Kalishev <kirill.kalishev@jetbrains.com>
Mon, 15 Feb 2010 16:01:32 +0000 (15 19:01 +0300)
platform/lang-impl/src/com/intellij/ide/util/scopeChooser/ScopeEditorPanel.java

index 19b71db..adeae19 100644 (file)
@@ -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()) {