public class PsiAwareTextEditorProvider extends TextEditorProvider
TextEditorProvider.EditorWrapperLOGEP_FILE_EDITOR_PROVIDER, KEY| Constructor and Description |
|---|
PsiAwareTextEditorProvider() |
| Modifier and Type | Method and Description |
|---|---|
FileEditor |
createEditor(Project project,
VirtualFile file)
Creates editor for the specified file.
|
protected TextEditorProvider.EditorWrapper |
createWrapperForEditor(Editor editor) |
protected TextEditorState |
getStateImpl(Project project,
Editor editor,
FileEditorStateLevel level) |
FileEditorState |
readState(Element element,
Project project,
VirtualFile file)
Deserialize state from the specified
sourceElement. |
protected void |
setStateImpl(Project project,
Editor editor,
TextEditorState state,
boolean exactState) |
void |
writeState(FileEditorState _state,
Project project,
Element element)
Serializes state into the specified
targetElement. |
accept, getDocuments, getEditorTypeId, getInstance, getPolicy, getTextEditor, isTextFileclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdisposeEditorpublic FileEditor createEditor(Project project, VirtualFile file)
FileEditorProvider
This method is called only if the provider has accepted this file (i.e. method FileEditorProvider.accept(Project, VirtualFile) returned
true).
The provider should return only valid editor.
createEditor in interface FileEditorProvidercreateEditor in class TextEditorProviderpublic FileEditorState readState(Element element, Project project, VirtualFile file)
FileEditorProvidersourceElement.readState in interface FileEditorProviderreadState in class TextEditorProviderpublic void writeState(FileEditorState _state, Project project, Element element)
FileEditorProvidertargetElement.writeState in interface FileEditorProviderwriteState in class TextEditorProviderprotected TextEditorState getStateImpl(Project project, Editor editor, FileEditorStateLevel level)
getStateImpl in class TextEditorProviderprotected void setStateImpl(Project project, Editor editor, TextEditorState state, boolean exactState)
setStateImpl in class TextEditorProviderprotected TextEditorProvider.EditorWrapper createWrapperForEditor(Editor editor)
createWrapperForEditor in class TextEditorProvider