public DockableEditor( Image img, VirtualFile file, Presentation presentation, EditorWindow window) { myImg = img; myFile = file; myPresentation = presentation; myContainer = new DockableEditorTabbedContainer(myProject); myEditorWindow = window; myPreferredSize = myEditorWindow.getSize(); myPinned = window.isFilePinned(file); }