mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[vcs-log] make VcsProjectLog disposable
This commit is contained in:
@@ -16,6 +16,7 @@
|
||||
package com.intellij.vcs.log.impl;
|
||||
|
||||
import com.intellij.ide.caches.CachesInvalidator;
|
||||
import com.intellij.openapi.Disposable;
|
||||
import com.intellij.openapi.application.ApplicationManager;
|
||||
import com.intellij.openapi.application.ApplicationNamesInfo;
|
||||
import com.intellij.openapi.components.ServiceManager;
|
||||
@@ -44,7 +45,7 @@ import java.util.Collection;
|
||||
|
||||
import static com.intellij.vcs.log.util.PersistentUtil.LOG_CACHE;
|
||||
|
||||
public class VcsProjectLog {
|
||||
public class VcsProjectLog implements Disposable {
|
||||
private static final Logger LOG = Logger.getInstance(VcsProjectLog.class);
|
||||
public static final Topic<ProjectLogListener> VCS_PROJECT_LOG_CHANGED =
|
||||
Topic.create("Project Vcs Log Created or Disposed", ProjectLogListener.class);
|
||||
@@ -156,6 +157,11 @@ public class VcsProjectLog {
|
||||
return ServiceManager.getService(project, VcsProjectLog.class);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void dispose() {
|
||||
disposeLog();
|
||||
}
|
||||
|
||||
private class LazyVcsLogManager {
|
||||
@Nullable private VcsLogManager myValue;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user