public abstract class BaseRemoteFileEditor extends java.lang.Object implements TextEditor, java.beans.PropertyChangeListener
Disposable.Parent
Modifier and Type | Field and Description |
---|---|
protected Project |
myProject |
PROP_MODIFIED, PROP_VALID
Modifier | Constructor and Description |
---|---|
protected |
BaseRemoteFileEditor(Project project) |
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
|
protected void |
contentLoaded() |
protected void |
contentRejected() |
void |
dispose()
Usually not invoked directly, see class javadoc.
|
BackgroundEditorHighlighter |
getBackgroundHighlighter() |
FileEditorLocation |
getCurrentLocation()
The method is optional.
|
Editor |
getEditor() |
FileEditorState |
getState(FileEditorStateLevel level) |
StructureViewBuilder |
getStructureViewBuilder() |
protected abstract TextEditor |
getTextEditor() |
<T> T |
getUserData(Key<T> key) |
boolean |
isModified() |
boolean |
isValid() |
void |
navigateTo(Navigatable navigatable)
Navigate editor to the given navigatable if
NavigatableFileEditor.canNavigateTo(com.intellij.pom.Navigatable) is true |
void |
propertyChange(java.beans.PropertyChangeEvent event) |
<T> void |
putUserData(Key<T> key,
T value)
Add a new user data value to this object.
|
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds specified listener
|
void |
setState(FileEditorState state)
Applies given state to the editor.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
deselectNotify, getComponent, getFile, getName, getPreferredFocusedComponent, selectNotify, setState
protected final Project myProject
protected BaseRemoteFileEditor(Project project)
public StructureViewBuilder getStructureViewBuilder()
getStructureViewBuilder
in interface FileEditor
public Editor getEditor()
getEditor
in interface TextEditor
protected abstract TextEditor getTextEditor()
public FileEditorLocation getCurrentLocation()
FileEditor
getCurrentLocation
in interface FileEditor
public BackgroundEditorHighlighter getBackgroundHighlighter()
getBackgroundHighlighter
in interface FileEditor
null
if no background highlighting activity necessary for this file editor.public FileEditorState getState(FileEditorStateLevel level)
getState
in interface FileEditor
null
.public void setState(FileEditorState state)
FileEditor
setState
in interface FileEditor
state
- cannot be nullpublic <T> T getUserData(Key<T> key)
getUserData
in interface UserDataHolder
public <T> void putUserData(Key<T> key, T value)
UserDataHolder
putUserData
in interface UserDataHolder
public boolean isModified()
isModified
in interface FileEditor
public boolean isValid()
isValid
in interface FileEditor
public void dispose()
Disposable
dispose
in interface Disposable
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 void propertyChange(java.beans.PropertyChangeEvent event)
propertyChange
in interface java.beans.PropertyChangeListener
public boolean canNavigateTo(Navigatable navigatable)
NavigatableFileEditor
canNavigateTo
in interface NavigatableFileEditor
public final void navigateTo(Navigatable navigatable)
NavigatableFileEditor
NavigatableFileEditor.canNavigateTo(com.intellij.pom.Navigatable)
is truenavigateTo
in interface NavigatableFileEditor
navigatable
- navigation targetprotected final void contentLoaded()
protected final void contentRejected()