mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Allow to customize IdeDocumentHistory behavior in tests (for Rider)
This commit is contained in:
+3
-3
@@ -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<EditorWindow> myWindow;
|
||||
|
||||
PlaceInfo(@NotNull VirtualFile file,
|
||||
public PlaceInfo(@NotNull VirtualFile file,
|
||||
@NotNull FileEditorState navigationState,
|
||||
@NotNull String editorTypeId,
|
||||
@Nullable EditorWindow window) {
|
||||
|
||||
Reference in New Issue
Block a user