public abstract class EditorBasedStatusBarPopup extends EditorBasedWidget implements StatusBarWidget.Multiframe, CustomStatusBarWidget
| Modifier and Type | Class and Description |
|---|---|
protected static class |
EditorBasedStatusBarPopup.WidgetState |
StatusBarWidget.IconPresentation, StatusBarWidget.Multiframe, StatusBarWidget.MultipleTextValuesPresentation, StatusBarWidget.PlatformType, StatusBarWidget.TextPresentation, StatusBarWidget.WidgetBorder, StatusBarWidget.WidgetPresentationDisposable.ParentFileEditorManagerListener.BeforemyConnection, myProject, myStatusBar, SWING_FOCUS_OWNER_PROPERTYFILE_EDITOR_MANAGER| Constructor and Description |
|---|
EditorBasedStatusBarPopup(Project project,
boolean writeableFileRequired) |
dispose, getEditor, getProject, getSelectedFile, isDisposed, isOurEditorclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetPresentation, IDdisposefileOpenedSyncpublic EditorBasedStatusBarPopup(Project project, boolean writeableFileRequired)
public final void selectionChanged(FileEditorManagerEvent event)
selectionChanged in interface FileEditorManagerListenerpublic final void setEditor(Editor editor)
public final void selectionChanged(VirtualFile newFile)
protected void handleFileChange(VirtualFile file)
public 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 void fileClosed(FileEditorManager source, VirtualFile file)
fileClosed in interface FileEditorManagerListenerpublic final StatusBarWidget copy()
copy in interface StatusBarWidget.Multiframepublic StatusBarWidget.WidgetPresentation getPresentation()
getPresentation in interface StatusBarWidgetpublic void install(StatusBar statusBar)
install in interface StatusBarWidgetinstall in class EditorBasedWidgetprotected void updateForDocument(Document document)
protected void updateForFile(VirtualFile file)
protected DataContext getContext()
public javax.swing.JComponent getComponent()
getComponent in interface CustomStatusBarWidgetprotected boolean isEmpty()
public boolean isActionEnabled()
public void updateInTests(boolean immediately)
public void flushUpdateInTests()
public void update()
public void update(java.lang.Runnable finishUpdate)
protected void afterVisibleUpdate(EditorBasedStatusBarPopup.WidgetState state)
protected abstract EditorBasedStatusBarPopup.WidgetState getWidgetState(VirtualFile file)
protected boolean isEnabledForFile(VirtualFile file)
file - result of EditorBasedWidget.getSelectedFile()file
even if getWidgetState(VirtualFile) returned EditorBasedStatusBarPopup.WidgetState.actionEnabled.protected abstract ListPopup createPopup(DataContext context)
protected void registerCustomListeners()
protected abstract StatusBarWidget createInstance(Project project)