mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Add comment to code (IDEA-CR-12780)
This commit is contained in:
@@ -64,6 +64,9 @@ public class PsiVFSListener extends VirtualFileAdapter {
|
||||
|
||||
private static final AtomicBoolean ourGlobalListenerInstalled = new AtomicBoolean(false);
|
||||
|
||||
/**
|
||||
* This code is implemented as static method (and not static constructor, as it was done before) to prevent installing listeners in Upsource
|
||||
*/
|
||||
private static void installGlobalListener() {
|
||||
if (ourGlobalListenerInstalled.compareAndSet(false, true)) {
|
||||
ApplicationManager.getApplication().getMessageBus().connect().subscribe(VirtualFileManager.VFS_CHANGES, new BulkFileListener() {
|
||||
|
||||
Reference in New Issue
Block a user