mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[vcs-log] remove unnecessary parameter
GitOrigin-RevId: 1170784c2da42e0beeac8e3e49670afd9259633f
This commit is contained in:
committed by
intellij-monorepo-bot
parent
3e116aaa06
commit
4a064e6668
@@ -64,7 +64,7 @@ public class VcsLogTabsWatcher implements Disposable {
|
||||
myConnection.subscribe(ToolWindowManagerListener.TOPIC, myPostponedEventsListener);
|
||||
|
||||
installContentListener();
|
||||
installLogEditorListeners(project);
|
||||
installLogEditorListeners();
|
||||
}
|
||||
|
||||
@Nullable
|
||||
@@ -118,7 +118,7 @@ public class VcsLogTabsWatcher implements Disposable {
|
||||
}
|
||||
}
|
||||
|
||||
private void installLogEditorListeners(Project project) {
|
||||
private void installLogEditorListeners() {
|
||||
if (!Registry.is("show.log.as.editor.tab")) {
|
||||
return;
|
||||
}
|
||||
@@ -127,7 +127,7 @@ public class VcsLogTabsWatcher implements Disposable {
|
||||
if (toolWindow != null) {
|
||||
toolWindow.getContentManager().addContentManagerListener(myLogEditorListener);
|
||||
|
||||
project.getMessageBus().connect(project)
|
||||
myProject.getMessageBus().connect(myProject)
|
||||
.subscribe(FileEditorManagerListener.FILE_EDITOR_MANAGER, new FileEditorManagerListener() {
|
||||
@Override
|
||||
public void selectionChanged(@NotNull FileEditorManagerEvent e) {
|
||||
@@ -135,7 +135,7 @@ public class VcsLogTabsWatcher implements Disposable {
|
||||
if (file instanceof GraphViewVirtualFile) {
|
||||
String data = file.getUserData(GraphViewVirtualFile.TabContentId);
|
||||
if (data != null) {
|
||||
VcsLogContentUtil.findAndSelect(project, AbstractVcsLogUi.class, ui -> {
|
||||
VcsLogContentUtil.findAndSelect(myProject, AbstractVcsLogUi.class, ui -> {
|
||||
return ui.getId() == data;
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user