public class EncodingWidget extends EditorBasedWidget implements StatusBarWidget.Multiframe, CustomStatusBarWidget
StatusBarWidget.IconPresentation, StatusBarWidget.Multiframe, StatusBarWidget.MultipleTextValuesPresentation, StatusBarWidget.PlatformType, StatusBarWidget.TextPresentation, StatusBarWidget.WidgetBorder, StatusBarWidget.WidgetPresentation
Disposable.Parent
FileEditorManagerListener.Before
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
WIDGET_ID |
myConnection, myProject, myStatusBar, SWING_FOCUS_OWNER_PROPERTY
FILE_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, isOurEditor
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPresentation
dispose
fileClosed, fileOpenedSync
public static final java.lang.String WIDGET_ID
public EncodingWidget(Project project, LargeFileEditorAccessor largeFileEditorAccessor)
public void selectionChanged(FileEditorManagerEvent event)
selectionChanged
in interface FileEditorManagerListener
public void fileOpened(FileEditorManager source, VirtualFile file)
FileEditorManagerListener
FileEditorManagerListener.fileOpenedSync(FileEditorManager, VirtualFile, Pair)
is always invoked before this method (in same or previous EDT event).fileOpened
in interface FileEditorManagerListener
FileEditorManagerListener.fileOpenedSync(FileEditorManager, VirtualFile, Pair)
public StatusBarWidget copy()
copy
in interface StatusBarWidget.Multiframe
public java.lang.String ID()
ID
in interface StatusBarWidget
public StatusBarWidget.WidgetPresentation getPresentation()
getPresentation
in interface StatusBarWidget
public void install(StatusBar statusBar)
install
in interface StatusBarWidget
install
in class EditorBasedWidget
public Project _getProject()
public void requestUpdate()
public javax.swing.JComponent getComponent()
getComponent
in interface CustomStatusBarWidget