public abstract class PerspectiveFileEditor extends UserDataHolderBase implements DocumentsEditor, Committable
Disposable.Parent
PROP_MODIFIED, PROP_VALID
Modifier | Constructor and Description |
---|---|
protected |
PerspectiveFileEditor(Project project,
VirtualFile file) |
Modifier and Type | Method and Description |
---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes specified listener
|
void |
addWatchedElement(DomElement domElement) |
protected boolean |
checkIsValid() |
protected abstract javax.swing.JComponent |
createCustomComponent() |
void |
deselectNotify()
This method is invoked each time when the editor is deselected.
|
void |
dispose()
Usually not invoked directly, see class javadoc.
|
protected void |
ensureInitialized() |
BackgroundEditorHighlighter |
getBackgroundHighlighter() |
javax.swing.JComponent |
getComponent() |
FileEditorLocation |
getCurrentLocation()
The method is optional.
|
protected PsiDocumentManager |
getDocumentManager() |
Document[] |
getDocuments() |
Project |
getProject() |
PsiFile |
getPsiFile() |
protected abstract DomElement |
getSelectedDomElement() |
StructureViewBuilder |
getStructureViewBuilder() |
VirtualFile |
getVirtualFile() |
Wrapper |
getWrapper() |
protected boolean |
isInitialised() |
boolean |
isModified() |
boolean |
isValid() |
void |
removePropertyChangeListener(java.beans.PropertyChangeListener listener)
Adds specified listener
|
void |
selectNotify()
This method is invoked each time when the editor is selected.
|
protected abstract void |
setSelectedDomElement(DomElement domElement) |
protected void |
setShowing(boolean b) |
void |
setState(FileEditorState state)
Applies given state to the editor.
|
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
getFile, getName, getPreferredFocusedComponent, getState, setState
getUserData, putUserData
commit, reset
protected PerspectiveFileEditor(Project project, VirtualFile file)
protected abstract DomElement getSelectedDomElement()
protected abstract void setSelectedDomElement(DomElement domElement)
public final void addWatchedElement(DomElement domElement)
protected final PsiDocumentManager getDocumentManager()
public final PsiFile getPsiFile()
public final Document[] getDocuments()
getDocuments
in interface DocumentsEditor
public final Project getProject()
public final VirtualFile getVirtualFile()
public void dispose()
Disposable
dispose
in interface Disposable
public final boolean isModified()
isModified
in interface FileEditor
public boolean isValid()
isValid
in interface FileEditor
public void selectNotify()
FileEditor
selectNotify
in interface FileEditor
protected final void setShowing(boolean b)
protected final void ensureInitialized()
public void deselectNotify()
FileEditor
deselectNotify
in interface FileEditor
public 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 StructureViewBuilder getStructureViewBuilder()
getStructureViewBuilder
in interface FileEditor
public void setState(FileEditorState state)
FileEditor
setState
in interface FileEditor
state
- cannot be nullpublic 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 removedprotected boolean checkIsValid()
public javax.swing.JComponent getComponent()
getComponent
in interface FileEditor
null
.protected abstract javax.swing.JComponent createCustomComponent()
public Wrapper getWrapper()
protected final boolean isInitialised()