From c70e2fbf2896eba2117899c71e8627f2b484f00e Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Tue, 10 Apr 2018 16:47:29 +0200 Subject: [PATCH] Allow to customize IdeDocumentHistory behavior in tests (for Rider) --- .../openapi/fileEditor/impl/IdeDocumentHistoryImpl.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/platform/platform-impl/src/com/intellij/openapi/fileEditor/impl/IdeDocumentHistoryImpl.java b/platform/platform-impl/src/com/intellij/openapi/fileEditor/impl/IdeDocumentHistoryImpl.java index c836b40f34b5..757a793d7a46 100644 --- a/platform/platform-impl/src/com/intellij/openapi/fileEditor/impl/IdeDocumentHistoryImpl.java +++ b/platform/platform-impl/src/com/intellij/openapi/fileEditor/impl/IdeDocumentHistoryImpl.java @@ -446,7 +446,7 @@ public class IdeDocumentHistoryImpl extends IdeDocumentHistory implements Projec return file != null ? myEditorManager.getSelectedEditorWithProvider(file) : null; } - private PlaceInfo createPlaceInfo(@NotNull final FileEditor fileEditor, final FileEditorProvider fileProvider) { + protected PlaceInfo createPlaceInfo(@NotNull final FileEditor fileEditor, final FileEditorProvider fileProvider) { if (!fileEditor.isValid()) return null; final VirtualFile file = myEditorManager.getFile(fileEditor); @@ -485,13 +485,13 @@ public class IdeDocumentHistoryImpl extends IdeDocumentHistory implements Projec return myFileDocumentManager; } - private static final class PlaceInfo { + protected static final class PlaceInfo { private final VirtualFile myFile; private final FileEditorState myNavigationState; private final String myEditorTypeId; private final Reference myWindow; - PlaceInfo(@NotNull VirtualFile file, + public PlaceInfo(@NotNull VirtualFile file, @NotNull FileEditorState navigationState, @NotNull String editorTypeId, @Nullable EditorWindow window) {