public class InspectionProfileWidgetFactory extends StatusBarEditorBasedWidgetFactory
EP_NAME| Constructor and Description |
|---|
InspectionProfileWidgetFactory() |
| Modifier and Type | Method and Description |
|---|---|
StatusBarWidget |
createWidget(Project project)
Creates a widget to be added to the status bar.
|
void |
disposeWidget(StatusBarWidget widget) |
java.lang.String |
getDisplayName() |
java.lang.String |
getId() |
boolean |
isAvailable(Project project)
Returns availability of widget.
|
canBeEnabledOn, getFileEditor, getTextEditorclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitisConfigurable, isEnabledByDefaultpublic boolean isAvailable(Project project)
StatusBarWidgetFactory
`False` means that IDE won't try to create a widget or will dispose it on StatusBarWidgetsManager.updateWidget(java.lang.Class<? extends com.intellij.openapi.wm.StatusBarWidgetFactory>) call.
E.g. `false` can be returned for
Whenever availability is changed, you need to call StatusBarWidgetsManager.updateWidget(StatusBarWidgetFactory)
explicitly to get status bar updated.
isAvailable in interface StatusBarWidgetFactoryisAvailable in class StatusBarEditorBasedWidgetFactorypublic java.lang.String getId()
public java.lang.String getDisplayName()
public StatusBarWidget createWidget(Project project)
StatusBarWidgetFactoryOnce the method is invoked on project initialization, the widget won't be recreated or disposed implicitly.
You may need to recreate it if:
StatusBarWidgetFactory.isAvailable(Project)com.intellij.openapi.wm.impl.status.widget.StatusBarWidgetSettings
To do this, you need to explicitly invoke StatusBarWidgetsManager.updateWidget(StatusBarWidgetFactory)
to recreate the widget and re-add it to the status bar.
public void disposeWidget(StatusBarWidget widget)