protected class TextEditorProvider.EditorWrapper extends UserDataHolderBase implements TextEditor
Disposable.Parent
PROP_MODIFIED, PROP_VALID
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes specified listener
|
boolean |
canNavigateTo(Navigatable navigatable)
Check whatever the editor can navigate to the given element
|
void |
deselectNotify()
This method is invoked each time when the editor is deselected.
|
void |
dispose()
Usually not invoked directly, see class javadoc.
|
BackgroundEditorHighlighter |
getBackgroundHighlighter() |
javax.swing.JComponent |
getComponent() |
FileEditorLocation |
getCurrentLocation()
The method is optional.
|
Editor |
getEditor() |
VirtualFile |
getFile() |
java.lang.String |
getName() |
javax.swing.JComponent |
getPreferredFocusedComponent()
Returns component to be focused when editor is opened.
|
FileEditorState |
getState(FileEditorStateLevel level) |
StructureViewBuilder |
getStructureViewBuilder() |
boolean |
isModified() |
boolean |
isValid() |
void |
navigateTo(Navigatable navigatable)
Navigate editor to the given navigatable if
NavigatableFileEditor.canNavigateTo(com.intellij.pom.Navigatable) is true |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds specified listener
|
void |
selectNotify()
This method is invoked each time when the editor is selected.
|
void |
setState(FileEditorState state)
Applies given state to the editor.
|
void |
setState(FileEditorState state,
boolean exactState)
In some cases, it's desirable to set state exactly as requested (e.g.
|
changeUserMap, clearUserData, clone, copyCopyableDataTo, copyUserDataTo, getCopyableUserData, getUserData, getUserDataString, getUserMap, isUserDataEmpty, putCopyableUserData, putUserData, putUserDataIfAbsent, replace, setUserMap
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getUserData, putUserData
public Editor getEditor()
getEditor
in interface TextEditor
public javax.swing.JComponent getComponent()
getComponent
in interface FileEditor
null
.public javax.swing.JComponent getPreferredFocusedComponent()
FileEditor
getPreferredFocusedComponent
in interface FileEditor
public java.lang.String getName()
getName
in interface FileEditor
null
.public StructureViewBuilder getStructureViewBuilder()
getStructureViewBuilder
in interface FileEditor
public FileEditorState getState(FileEditorStateLevel level)
getState
in interface FileEditor
null
.public void setState(FileEditorState state)
FileEditor
setState
in interface FileEditor
state
- cannot be nullpublic void setState(FileEditorState state, boolean exactState)
FileEditor
setState
in interface FileEditor
public boolean isModified()
isModified
in interface FileEditor
public boolean isValid()
isValid
in interface FileEditor
public void dispose()
Disposable
dispose
in interface Disposable
public void selectNotify()
FileEditor
selectNotify
in interface FileEditor
public void deselectNotify()
FileEditor
deselectNotify
in interface FileEditor
public void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
FileEditor
addPropertyChangeListener
in interface FileEditor
listener
- to be addedpublic void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
FileEditor
removePropertyChangeListener
in interface FileEditor
listener
- to be removedpublic BackgroundEditorHighlighter getBackgroundHighlighter()
getBackgroundHighlighter
in interface FileEditor
null
if no background highlighting activity necessary for this file editor.public FileEditorLocation getCurrentLocation()
FileEditor
getCurrentLocation
in interface FileEditor
public boolean canNavigateTo(Navigatable navigatable)
NavigatableFileEditor
canNavigateTo
in interface NavigatableFileEditor
public void navigateTo(Navigatable navigatable)
NavigatableFileEditor
NavigatableFileEditor.canNavigateTo(com.intellij.pom.Navigatable)
is truenavigateTo
in interface NavigatableFileEditor
navigatable
- navigation targetpublic VirtualFile getFile()
getFile
in interface FileEditor