Example usage for com.intellij.openapi.wm StatusBar removeCustomIndicationComponent

List of usage examples for com.intellij.openapi.wm StatusBar removeCustomIndicationComponent

Introduction

In this page you can find the example usage for com.intellij.openapi.wm StatusBar removeCustomIndicationComponent.

Prototype

@Deprecated
@ApiStatus.ScheduledForRemoval
void removeCustomIndicationComponent(@NotNull JComponent c);

Source Link

Usage

From source file:bazaar4idea.BzrVcs.java

License:Apache License

public void deactivate() {
    if (!started) {
        return;//from  www .j a va  2s .  c  o  m
    }

    if (myRootTracker != null) {
        myRootTracker.dispose();
        myRootTracker = null;
    }

    LocalFileSystem lfs = LocalFileSystem.getInstance();
    lfs.removeVirtualFileListener(myVirtualFileListener);
    lfs.unregisterAuxiliaryFileOperationsHandler(myVirtualFileListener);
    CommandProcessor.getInstance().removeCommandListener(myVirtualFileListener);

    StatusBar statusBar = WindowManager.getInstance().getStatusBar(myProject);
    if (messageBusConnection != null) {
        messageBusConnection.disconnect();
    }
    if (changesUpdaterScheduledFuture != null) {
        changesUpdaterScheduledFuture.cancel(true);
    }
    if (statusBar != null) {
        statusBar.removeCustomIndicationComponent(incomingChangesStatus);
        statusBar.removeCustomIndicationComponent(outgoingChangesStatus);
        statusBar.removeCustomIndicationComponent(hgCurrentBranchStatus);
    }

    assert m_activationDisposable != null;
    Disposer.dispose(m_activationDisposable);
    m_activationDisposable = null;
}