mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
project leaks (when disposed project stuck in a swing later invocator queue) fixed
This commit is contained in:
@@ -1517,7 +1517,7 @@ public final class EditorImpl extends UserDataHolderBase implements EditorEx, Hi
|
||||
assertIsDispatchThread();
|
||||
if (!updatingSize) {
|
||||
updatingSize = true;
|
||||
SwingUtilities.invokeLater(() -> {
|
||||
ApplicationManager.getApplication().invokeLater(() -> {
|
||||
try {
|
||||
if (!isDisposed()) {
|
||||
myGutterComponent.updateSize();
|
||||
@@ -1526,7 +1526,7 @@ public final class EditorImpl extends UserDataHolderBase implements EditorEx, Hi
|
||||
finally {
|
||||
updatingSize = false;
|
||||
}
|
||||
});
|
||||
}, __->isDisposed());
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1613,7 +1613,7 @@ public final class EditorImpl extends UserDataHolderBase implements EditorEx, Hi
|
||||
|
||||
public void stopDumbLater() {
|
||||
if (ApplicationManager.getApplication().isUnitTestMode()) return;
|
||||
ApplicationManager.getApplication().invokeLater(this::stopDumb, ModalityState.current());
|
||||
ApplicationManager.getApplication().invokeLater(this::stopDumb, ModalityState.current(), __ -> isDisposed());
|
||||
}
|
||||
|
||||
private void stopDumb() {
|
||||
|
||||
Reference in New Issue
Block a user