public final class LightEditServiceImpl extends java.lang.Object implements LightEditService, Disposable, LightEditorListener, AppLifecycleListener, PersistentStateComponent<com.intellij.ide.lightEdit.LightEditConfiguration>
Disposable.ParentAppLifecycleListener.AdapterTOPIC| Constructor and Description |
|---|
LightEditServiceImpl() |
| Modifier and Type | Method and Description |
|---|---|
void |
afterClose(LightEditorInfo editorInfo) |
void |
afterSelect(LightEditorInfo editorInfo) |
void |
appClosing()
Fired before saving settings and before final 'can exit?' check.
|
void |
closeEditor(LightEditorInfo editorInfo) |
boolean |
closeEditorWindow() |
void |
createNewFile() |
void |
dispose()
Usually not invoked directly, see class javadoc.
|
void |
disposeCurrentSession() |
LightEditorManager |
getEditorManager() |
LightEditPanel |
getEditPanel() |
Project |
getOrCreateProject() |
Project |
getProject() |
VirtualFile |
getSelectedFile() |
FileEditor |
getSelectedFileEditor() |
com.intellij.ide.lightEdit.LightEditConfiguration |
getState() |
boolean |
isAutosaveMode() |
void |
loadState(com.intellij.ide.lightEdit.LightEditConfiguration state)
This method is called when new component state is loaded.
|
boolean |
openFile(VirtualFile file) |
void |
saveToAnotherFile(VirtualFile file) |
void |
setAutosaveMode(boolean autosaveMode) |
void |
showEditorWindow() |
void |
updateFileStatus(java.util.Collection<VirtualFile> files) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetInstanceafterCreate, autosaveModeChanged, beforeClose, fileStatusChangedappFrameCreated, appFrameCreated, appStarting, appWillBeClosed, projectFrameClosed, projectOpenFailed, welcomeScreenDisplayedinitializeComponent, noStateLoadedpublic com.intellij.ide.lightEdit.LightEditConfiguration getState()
getState in interface PersistentStateComponent<com.intellij.ide.lightEdit.LightEditConfiguration>null value indicates
that the returned state won't be stored, as a result previously stored state will be used.XmlSerializerpublic void loadState(com.intellij.ide.lightEdit.LightEditConfiguration state)
PersistentStateComponentState object should be used directly, defensive copying is not required.
loadState in interface PersistentStateComponent<com.intellij.ide.lightEdit.LightEditConfiguration>state - loaded component stateXmlSerializerUtil.copyBean(Object, Object)public void showEditorWindow()
showEditorWindow in interface LightEditServicepublic Project getProject()
getProject in interface LightEditServicepublic Project getOrCreateProject()
getOrCreateProject in interface LightEditServicepublic boolean openFile(VirtualFile file)
openFile in interface LightEditServicepublic void closeEditor(LightEditorInfo editorInfo)
public void createNewFile()
createNewFile in interface LightEditServicepublic boolean closeEditorWindow()
closeEditorWindow in interface LightEditServicepublic LightEditPanel getEditPanel()
public VirtualFile getSelectedFile()
getSelectedFile in interface LightEditServicepublic FileEditor getSelectedFileEditor()
getSelectedFileEditor in interface LightEditServicepublic void updateFileStatus(java.util.Collection<VirtualFile> files)
updateFileStatus in interface LightEditServicepublic void dispose()
Disposabledispose in interface Disposablepublic void afterSelect(LightEditorInfo editorInfo)
afterSelect in interface LightEditorListenerpublic void afterClose(LightEditorInfo editorInfo)
afterClose in interface LightEditorListenerpublic LightEditorManager getEditorManager()
getEditorManager in interface LightEditServicepublic void saveToAnotherFile(VirtualFile file)
saveToAnotherFile in interface LightEditServicepublic boolean isAutosaveMode()
isAutosaveMode in interface LightEditServicepublic void setAutosaveMode(boolean autosaveMode)
setAutosaveMode in interface LightEditServicepublic void disposeCurrentSession()
public void appClosing()
AppLifecycleListenerApplicationListener listeners return false from their canExitApplication
method.appClosing in interface AppLifecycleListener