mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
update view in ui thread (IDEA-70496)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user