mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[vcs] Pass service as extension parameter
This commit is contained in:
@@ -15,7 +15,6 @@
|
||||
*/
|
||||
package git4idea.log;
|
||||
|
||||
import com.intellij.openapi.components.ServiceManager;
|
||||
import com.intellij.openapi.diagnostic.Attachment;
|
||||
import com.intellij.openapi.diagnostic.Logger;
|
||||
import com.intellij.openapi.project.Project;
|
||||
@@ -62,11 +61,11 @@ public class GitLogProvider implements VcsLogProvider {
|
||||
@NotNull private final VcsLogRefManager myRefSorter;
|
||||
@NotNull private final VcsLogObjectsFactory myVcsObjectsFactory;
|
||||
|
||||
public GitLogProvider(@NotNull Project project, @NotNull GitRepositoryManager repositoryManager) {
|
||||
public GitLogProvider(@NotNull Project project, @NotNull GitRepositoryManager repositoryManager, @NotNull VcsLogObjectsFactory factory) {
|
||||
myProject = project;
|
||||
myRepositoryManager = repositoryManager;
|
||||
myRefSorter = new GitRefManager(myRepositoryManager);
|
||||
myVcsObjectsFactory = ServiceManager.getService(myProject, VcsLogObjectsFactory.class);
|
||||
myVcsObjectsFactory = factory;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
|
||||
@@ -16,7 +16,6 @@
|
||||
|
||||
package org.zmlx.hg4idea.log;
|
||||
|
||||
import com.intellij.openapi.components.ServiceManager;
|
||||
import com.intellij.openapi.diagnostic.Logger;
|
||||
import com.intellij.openapi.project.Project;
|
||||
import com.intellij.openapi.util.Pair;
|
||||
@@ -52,11 +51,11 @@ public class HgLogProvider implements VcsLogProvider {
|
||||
@NotNull private final VcsLogRefManager myRefSorter;
|
||||
@NotNull private final VcsLogObjectsFactory myVcsObjectsFactory;
|
||||
|
||||
public HgLogProvider(@NotNull Project project, @NotNull HgRepositoryManager repositoryManager) {
|
||||
public HgLogProvider(@NotNull Project project, @NotNull HgRepositoryManager repositoryManager, @NotNull VcsLogObjectsFactory factory) {
|
||||
myProject = project;
|
||||
myRepositoryManager = repositoryManager;
|
||||
myRefSorter = new HgRefManager();
|
||||
myVcsObjectsFactory = ServiceManager.getService(project, VcsLogObjectsFactory.class);
|
||||
myVcsObjectsFactory = factory;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
|
||||
Reference in New Issue
Block a user