mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
fix for testProjectLeak()
This commit is contained in:
+5
-1
@@ -108,7 +108,11 @@ public class SearchEverywhereManagerImpl implements SearchEverywhereManager {
|
||||
myBalloon.pack(true, true);
|
||||
|
||||
myProject.putUserData(SEARCH_EVERYWHERE_POPUP, myBalloon);
|
||||
Disposer.register(myBalloon, () -> myProject.putUserData(SEARCH_EVERYWHERE_POPUP, null));
|
||||
Disposer.register(myBalloon, () -> {
|
||||
myProject.putUserData(SEARCH_EVERYWHERE_POPUP, null);
|
||||
mySearchEverywhereUI = null;
|
||||
myBalloon = null;
|
||||
});
|
||||
|
||||
if (project != null) {
|
||||
myBalloon.showCenteredInCurrentWindow(project);
|
||||
|
||||
Reference in New Issue
Block a user