update view in ui thread (IDEA-70496)

This commit is contained in:
anna
2011-06-02 09:23:16 +04:00
parent d62745a9b0
commit ebecfcfaf2
@@ -343,7 +343,11 @@ public class TemplateCommentPanel implements SearchableConfigurable {
private void showPreview(LanguageOptions options) {
final String defaultCopyrightText = myNoCopyright.isSelected() ? "" : FileTypeUtil
.buildComment(fileType, VelocityHelper.evaluate(null, null, null, EntityUtil.decode(CopyrightProfile.DEFAULT_COPYRIGHT_NOTICE)), options);
preview.setText(defaultCopyrightText);
SwingUtilities.invokeLater(new Runnable() {
public void run() {
preview.setText(defaultCopyrightText);
}
});
}