|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface FileEditorProvider
| Method Summary | |
|---|---|
boolean |
accept(Project project,
VirtualFile file)
|
FileEditor |
createEditor(Project project,
VirtualFile file)
Creates editor for the specified file. |
void |
disposeEditor(FileEditor editor)
Disposes the specified editor. |
java.lang.String |
getEditorTypeId()
|
FileEditorPolicy |
getPolicy()
|
FileEditorState |
readState(org.jdom.Element sourceElement,
Project project,
VirtualFile file)
Deserializes state from the specified sourceElemet |
void |
writeState(FileEditorState state,
Project project,
org.jdom.Element targetElement)
Serializes state into the specified targetElement |
| Method Detail |
|---|
boolean accept(Project project,
VirtualFile file)
file - file to be tested for acceptance. This
parameter is never null.
file or not
FileEditor createEditor(Project project,
VirtualFile file)
accept(Project, VirtualFile) returned
true).
The provider should return only valid editor.
null.void disposeEditor(FileEditor editor)
editor. It is guaranteed that this method is invoked only for editors
created with this provider.
editor - editor to be disposed. This parameter is always not null.
FileEditorState readState(org.jdom.Element sourceElement,
Project project,
VirtualFile file)
sourceElemet
void writeState(FileEditorState state,
Project project,
org.jdom.Element targetElement)
targetElement
java.lang.String getEditorTypeId()
FileEditorPolicy getPolicy()
FileEditorPolicy.NONE,
FileEditorPolicy.HIDE_DEFAULT_EDITOR,
FileEditorPolicy.PLACE_BEFORE_DEFAULT_EDITOR
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||