public final class LargeFileEditorProvider extends TextEditorProvider
| Modifier and Type | Class and Description |
|---|---|
static class |
LargeFileEditorProvider.LargeTextFileEditor |
TextEditorProvider.EditorWrapperLOGEP_FILE_EDITOR_PROVIDER, KEY| Constructor and Description |
|---|
LargeFileEditorProvider() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
accept(Project project,
VirtualFile file)
Method is expected to run fast.
|
FileEditor |
createEditor(Project project,
VirtualFile file)
Creates editor for the specified file.
|
java.lang.String |
getEditorTypeId() |
createWrapperForEditor, getDocuments, getInstance, getPolicy, getStateImpl, getTextEditor, isTextFile, readState, setStateImpl, writeStateclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdisposeEditorpublic boolean accept(Project project, VirtualFile file)
FileEditorProvideraccept in interface FileEditorProvideraccept in class TextEditorProviderfile - file to be tested for acceptance.true if provider can create valid editor for the specified file.public 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 java.lang.String getEditorTypeId()
getEditorTypeId in interface FileEditorProvidergetEditorTypeId in class TextEditorProvider