mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
restore EditorNotifications in test mode
This commit is contained in:
@@ -100,7 +100,10 @@ public class EditorNotificationsImpl extends EditorNotifications {
|
||||
|
||||
file.putUserData(CURRENT_UPDATES, new WeakReference<ProgressIndicator>(indicator));
|
||||
if (ApplicationManager.getApplication().isUnitTestMode()) {
|
||||
task.performInReadAction(indicator);
|
||||
ReadTask.Continuation continuation = task.performInReadAction(indicator);
|
||||
if (continuation != null) {
|
||||
continuation.getAction().run();
|
||||
}
|
||||
}
|
||||
else {
|
||||
ProgressIndicatorUtils.scheduleWithWriteActionPriority(indicator, ourExecutor, task);
|
||||
|
||||
Reference in New Issue
Block a user