public class EncodingWidget extends EditorBasedWidget implements StatusBarWidget.Multiframe, CustomStatusBarWidget
StatusBarWidget.IconPresentation, StatusBarWidget.Multiframe, StatusBarWidget.MultipleTextValuesPresentation, StatusBarWidget.PlatformType, StatusBarWidget.TextPresentation, StatusBarWidget.WidgetBorder, StatusBarWidget.WidgetPresentationDisposable.ParentFileEditorManagerListener.Before| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
WIDGET_ID |
myConnection, myProject, myStatusBar, SWING_FOCUS_OWNER_PROPERTYFILE_EDITOR_MANAGER| Constructor and Description |
|---|
EncodingWidget(Project project,
LargeFileEditorAccessor largeFileEditorAccessor) |
| Modifier and Type | Method and Description |
|---|---|
Project |
_getProject() |
StatusBarWidget |
copy() |
void |
fileOpened(FileEditorManager source,
VirtualFile file)
This method is after focus settles down (if requested) in newly created FileEditor.
|
javax.swing.JComponent |
getComponent() |
StatusBarWidget.WidgetPresentation |
getPresentation() |
java.lang.String |
ID() |
void |
install(StatusBar statusBar) |
void |
requestUpdate() |
void |
selectionChanged(FileEditorManagerEvent event) |
dispose, getEditor, getProject, getSelectedFile, isDisposed, isOurEditorclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPresentationdisposefileClosed, fileOpenedSyncpublic static final java.lang.String WIDGET_ID
public EncodingWidget(Project project, LargeFileEditorAccessor largeFileEditorAccessor)
public void selectionChanged(FileEditorManagerEvent event)
selectionChanged in interface FileEditorManagerListenerpublic void fileOpened(FileEditorManager source, VirtualFile file)
FileEditorManagerListenerFileEditorManagerListener.fileOpenedSync(FileEditorManager, VirtualFile, Pair) is always invoked before this method (in same or previous EDT event).fileOpened in interface FileEditorManagerListenerFileEditorManagerListener.fileOpenedSync(FileEditorManager, VirtualFile, Pair)public StatusBarWidget copy()
copy in interface StatusBarWidget.Multiframepublic java.lang.String ID()
ID in interface StatusBarWidgetpublic StatusBarWidget.WidgetPresentation getPresentation()
getPresentation in interface StatusBarWidgetpublic void install(StatusBar statusBar)
install in interface StatusBarWidgetinstall in class EditorBasedWidgetpublic Project _getProject()
public void requestUpdate()
public javax.swing.JComponent getComponent()
getComponent in interface CustomStatusBarWidget