|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.intellij.openapi.editor.EditorFactory
public abstract class EditorFactory
Provides services for creating document and editor instances.
| Constructor Summary | |
|---|---|
EditorFactory()
|
|
| Method Summary | |
|---|---|
abstract void |
addEditorFactoryListener(EditorFactoryListener listener)
Registers a listener for receiving notifications when editor instances are created and released. |
abstract Document |
createDocument(char[] text)
Creates a document from the specified text specified as an array of characters. |
abstract Document |
createDocument(java.lang.CharSequence text)
Creates a document from the specified text specified as a character sequence. |
abstract Editor |
createEditor(Document document)
Creates an editor for the specified document. |
abstract Editor |
createEditor(Document document,
Project project)
Creates an editor for the specified document associated with the specified project. |
abstract Editor |
createViewer(Document document)
Creates a read-only editor for the specified document. |
abstract Editor |
createViewer(Document document,
Project project)
Creates a read-only editor for the specified document associated with the specified project. |
abstract Editor[] |
getAllEditors()
Returns the list of all currently open editors. |
abstract Editor[] |
getEditors(Document document)
Returns the list of all editors for the specified document. |
abstract Editor[] |
getEditors(Document document,
Project project)
Returns the list of editors for the specified document associated with the specified project. |
abstract EditorEventMulticaster |
getEventMulticaster()
Returns the service for attaching event listeners to all editor instances. |
static EditorFactory |
getInstance()
Returns the editor factory instance. |
abstract void |
refreshAllEditors()
Reloads the editor settings and refrehes all currently open editors. |
abstract void |
releaseEditor(Editor editor)
Disposes of the specified editor instance. |
abstract void |
removeEditorFactoryListener(EditorFactoryListener listener)
Unregisters a listener for receiving notifications when editor instances are created and released. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface com.intellij.openapi.components.BaseComponent |
|---|
disposeComponent, getComponentName, initComponent |
| Constructor Detail |
|---|
public EditorFactory()
| Method Detail |
|---|
public static EditorFactory getInstance()
@NotNull public abstract Document createDocument(java.lang.CharSequence text)
text - the text to create the document from.
@NotNull public abstract Document createDocument(char[] text)
text - the text to create the document from.
public abstract Editor createEditor(Document document)
document - the document to create the editor for.
releaseEditor(Editor)public abstract Editor createViewer(Document document)
document - the document to create the editor for.
releaseEditor(Editor)
public abstract Editor createEditor(Document document,
@Nullable
Project project)
document - the document to create the editor for.project - the project with which the editor is associated.
Editor.getProject(),
releaseEditor(Editor)
public abstract Editor createViewer(Document document,
@Nullable
Project project)
document - the document to create the editor for.project - the project with which the editor is associated.
Editor.getProject(),
releaseEditor(Editor)public abstract void releaseEditor(Editor editor)
editor - the editor instance to release.
public abstract Editor[] getEditors(Document document,
@Nullable
Project project)
document - the document for which editors are requested.project - the project with which editors should be associated, or null if any editors
for this document should be returned.
public abstract Editor[] getEditors(Document document)
document - the document for which editors are requested.
public abstract Editor[] getAllEditors()
public abstract void addEditorFactoryListener(EditorFactoryListener listener)
listener - the listener instance.public abstract void removeEditorFactoryListener(EditorFactoryListener listener)
listener - the listener instance.@NotNull public abstract EditorEventMulticaster getEventMulticaster()
public abstract void refreshAllEditors()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||