public class LargeFileEditorImpl extends UserDataHolderBase implements LargeFileEditor
Disposable.ParentLARGE_FILE_EDITOR_KEY, LARGE_FILE_EDITOR_MARK_KEYPROP_MODIFIED, PROP_VALID| Constructor and Description |
|---|
LargeFileEditorImpl(Project project,
VirtualFile vFile) |
| Modifier and Type | Method and Description |
|---|---|
void |
addPropertyChangeListener(java.beans.PropertyChangeListener listener)
Removes specified listener
|
LargeFileEditorAccess |
createAccessForEncodingWidget() |
void |
deselectNotify()
This method is invoked each time when the editor is deselected.
|
void |
dispose()
Usually not invoked directly, see class javadoc.
|
BackgroundEditorHighlighter |
getBackgroundHighlighter() |
long |
getCaretPageNumber() |
int |
getCaretPageOffset() |
javax.swing.JComponent |
getComponent() |
FileEditorLocation |
getCurrentLocation()
The method is optional.
|
Editor |
getEditor() |
EditorModel |
getEditorModel() |
VirtualFile |
getFile() |
FileDataProviderForSearch |
getFileDataProviderForSearch() |
java.lang.String |
getName() |
javax.swing.JComponent |
getPreferredFocusedComponent()
Returns component to be focused when editor is opened.
|
Project |
getProject() |
LfeSearchManager |
getSearchManager() |
FileEditorState |
getState(FileEditorStateLevel level) |
VirtualFile |
getVirtualFile() |
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.
|
void |
setState(FileEditorState state)
Applies given state to the editor.
|
void |
showSearchResult(SearchResult searchResult) |
changeUserMap, clearUserData, clone, copyCopyableDataTo, copyUserDataTo, getCopyableUserData, getUserData, getUserDataString, getUserMap, isUserDataEmpty, putCopyableUserData, putUserData, putUserDataIfAbsent, replace, setUserMapequals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetStructureViewBuilder, setStategetUserData, putUserDatapublic LargeFileEditorImpl(Project project, VirtualFile vFile)
public LfeSearchManager getSearchManager()
getSearchManager in interface LargeFileEditorpublic javax.swing.JComponent getComponent()
getComponent in interface FileEditornull.public javax.swing.JComponent getPreferredFocusedComponent()
FileEditorgetPreferredFocusedComponent in interface FileEditorpublic java.lang.String getName()
getName in interface FileEditornull.public void setState(FileEditorState state)
FileEditorsetState in interface FileEditorstate - cannot be nullpublic FileEditorState getState(FileEditorStateLevel level)
getState in interface FileEditornull.public boolean isModified()
isModified in interface FileEditorpublic boolean isValid()
isValid in interface FileEditorpublic void selectNotify()
FileEditorselectNotify in interface FileEditorpublic void deselectNotify()
FileEditordeselectNotify in interface FileEditorpublic void addPropertyChangeListener(java.beans.PropertyChangeListener listener)
FileEditoraddPropertyChangeListener in interface FileEditorlistener - to be addedpublic void removePropertyChangeListener(java.beans.PropertyChangeListener listener)
FileEditorremovePropertyChangeListener in interface FileEditorlistener - to be removedpublic BackgroundEditorHighlighter getBackgroundHighlighter()
getBackgroundHighlighter in interface FileEditornull if no background highlighting activity necessary for this file editor.public FileEditorLocation getCurrentLocation()
FileEditorgetCurrentLocation in interface FileEditorpublic void dispose()
Disposabledispose in interface Disposablepublic void showSearchResult(SearchResult searchResult)
showSearchResult in interface LargeFileEditorpublic Project getProject()
getProject in interface LargeFileEditorpublic long getCaretPageNumber()
getCaretPageNumber in interface LargeFileEditorpublic int getCaretPageOffset()
getCaretPageOffset in interface LargeFileEditorpublic Editor getEditor()
getEditor in interface LargeFileEditorpublic VirtualFile getFile()
getFile in interface LargeFileEditorgetFile in interface FileEditorpublic VirtualFile getVirtualFile()
getVirtualFile in interface LargeFileEditorpublic LargeFileEditorAccess createAccessForEncodingWidget()
createAccessForEncodingWidget in interface LargeFileEditorpublic FileDataProviderForSearch getFileDataProviderForSearch()
getFileDataProviderForSearch in interface LargeFileEditorpublic EditorModel getEditorModel()
getEditorModel in interface LargeFileEditor