diff --git a/platform/vcs-log/impl/src/com/intellij/vcs/log/impl/VcsLogManager.java b/platform/vcs-log/impl/src/com/intellij/vcs/log/impl/VcsLogManager.java index 49a1c238da79..e165982d4ecf 100644 --- a/platform/vcs-log/impl/src/com/intellij/vcs/log/impl/VcsLogManager.java +++ b/platform/vcs-log/impl/src/com/intellij/vcs/log/impl/VcsLogManager.java @@ -54,8 +54,7 @@ public class VcsLogManager implements Disposable { @NotNull private final Project myProject; @NotNull private final VcsLogTabsProperties myUiProperties; - - @Nullable private Runnable myRecreateMainLogHandler; + @Nullable private final Runnable myRecreateMainLogHandler; private volatile VcsLogUiImpl myUi; @NotNull private final VcsLogDataManager myDataManager; @@ -64,8 +63,16 @@ public class VcsLogManager implements Disposable { @NotNull private final PostponableLogRefresher myPostponableRefresher; public VcsLogManager(@NotNull Project project, @NotNull VcsLogTabsProperties uiProperties, @NotNull Collection roots) { + this(project, uiProperties, roots, null); + } + + public VcsLogManager(@NotNull Project project, + @NotNull VcsLogTabsProperties uiProperties, + @NotNull Collection roots, + @Nullable Runnable recreateHandler) { myProject = project; myUiProperties = uiProperties; + myRecreateMainLogHandler = recreateHandler; Map logProviders = findLogProviders(roots, myProject); myDataManager = new VcsLogDataManager(myProject, logProviders, new MyFatalErrorsConsumer()); @@ -151,10 +158,6 @@ public class VcsLogManager implements Disposable { return logProviders; } - public void setRecreateMainLogHandler(@Nullable Runnable recreateMainLogHandler) { - myRecreateMainLogHandler = recreateMainLogHandler; - } - /** * The instance of the {@link VcsLogUiImpl} or null if the log was not initialized yet. */ diff --git a/platform/vcs-log/impl/src/com/intellij/vcs/log/impl/VcsLogProjectManager.java b/platform/vcs-log/impl/src/com/intellij/vcs/log/impl/VcsLogProjectManager.java index 18a95b543ce8..c4c159556663 100644 --- a/platform/vcs-log/impl/src/com/intellij/vcs/log/impl/VcsLogProjectManager.java +++ b/platform/vcs-log/impl/src/com/intellij/vcs/log/impl/VcsLogProjectManager.java @@ -59,8 +59,7 @@ public class VcsLogProjectManager { public boolean initData() { if (myLogManager != null) return true; - myLogManager = new VcsLogManager(myProject, myUiProperties, getVcsRoots()); - myLogManager.setRecreateMainLogHandler(myRecreateMainLogHandler); + myLogManager = new VcsLogManager(myProject, myUiProperties, getVcsRoots(), myRecreateMainLogHandler); return false; }