mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
EA-34927 - assert: AbstractPopup.show
background task can be started from AWT thread only
This commit is contained in:
+10
-5
@@ -128,12 +128,17 @@ public class InstalledPluginsTableModel extends PluginTableModel {
|
||||
|
||||
updatePluginDependencies();
|
||||
|
||||
ProgressManager.getInstance().run(new Task.Backgroundable(null, "Load custom plugin repositories data...") {
|
||||
@Override
|
||||
public void run(@NotNull ProgressIndicator indicator) {
|
||||
updateRepositoryPlugins();
|
||||
final Runnable runnable = new Runnable() {
|
||||
public void run() {
|
||||
ProgressManager.getInstance().run(new Task.Backgroundable(null, "Load custom plugin repositories data...") {
|
||||
@Override
|
||||
public void run(@NotNull ProgressIndicator indicator) {
|
||||
updateRepositoryPlugins();
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
};
|
||||
SwingUtilities.invokeLater(runnable);
|
||||
}
|
||||
|
||||
public void updateRepositoryPlugins() {
|
||||
|
||||
Reference in New Issue
Block a user