mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
disposable listener
This commit is contained in:
@@ -145,7 +145,7 @@ public class CacheUpdateRunner extends DumbModeTask {
|
||||
private static boolean processSomeFilesWhileUserIsInactive(@NotNull FileContentQueue queue,
|
||||
@NotNull Consumer<VirtualFile> progressUpdater,
|
||||
final boolean processInReadAction,
|
||||
@NotNull Project project,
|
||||
@NotNull final Project project,
|
||||
@NotNull Consumer<FileContent> fileProcessor) {
|
||||
final ProgressIndicatorBase innerIndicator = new ProgressIndicatorBase() {
|
||||
@Override
|
||||
@@ -163,7 +163,7 @@ public class CacheUpdateRunner extends DumbModeTask {
|
||||
application.invokeAndWait(new Runnable() {
|
||||
@Override
|
||||
public void run() {
|
||||
application.addApplicationListener(canceller);
|
||||
application.addApplicationListener(canceller, project);
|
||||
}
|
||||
}, ModalityState.any());
|
||||
|
||||
|
||||
Reference in New Issue
Block a user