public final class LightEditorManagerImpl extends java.lang.Object implements LightEditorManager, Disposable
Disposable.Parent
Constructor and Description |
---|
LightEditorManagerImpl(LightEditServiceImpl service) |
Modifier and Type | Method and Description |
---|---|
void |
addListener(LightEditorListener listener) |
void |
addListener(LightEditorListener listener,
Disposable parent) |
void |
closeEditor(LightEditorInfo editorInfo) |
boolean |
containsUnsavedDocuments() |
LightEditorInfo |
createEditor()
Create an empty editor without any file type assigned (defaults to plain text).
|
LightEditorInfo |
createEditor(VirtualFile file) |
void |
dispose()
Usually not invoked directly, see class javadoc.
|
LightEditorInfo |
findOpen(VirtualFile file) |
java.util.Collection<VirtualFile> |
getOpenFiles() |
boolean |
isFileOpen(VirtualFile file) |
boolean |
isImplicitSaveAllowed(Document document) |
void |
releaseEditors() |
LightEditorInfo |
saveAs(LightEditorInfo info,
VirtualFile targetFile) |
public LightEditorManagerImpl(LightEditServiceImpl service)
public LightEditorInfo createEditor()
createEditor
in interface LightEditorManager
public LightEditorInfo createEditor(VirtualFile file)
createEditor
in interface LightEditorManager
public void dispose()
Disposable
dispose
in interface Disposable
public void releaseEditors()
public void closeEditor(LightEditorInfo editorInfo)
closeEditor
in interface LightEditorManager
public void addListener(LightEditorListener listener)
addListener
in interface LightEditorManager
public void addListener(LightEditorListener listener, Disposable parent)
addListener
in interface LightEditorManager
public LightEditorInfo findOpen(VirtualFile file)
public boolean isImplicitSaveAllowed(Document document)
isImplicitSaveAllowed
in interface LightEditorManager
public java.util.Collection<VirtualFile> getOpenFiles()
getOpenFiles
in interface LightEditorManager
public boolean isFileOpen(VirtualFile file)
isFileOpen
in interface LightEditorManager
public boolean containsUnsavedDocuments()
containsUnsavedDocuments
in interface LightEditorManager
public LightEditorInfo saveAs(LightEditorInfo info, VirtualFile targetFile)
saveAs
in interface LightEditorManager