Example usage for com.intellij.openapi.actionSystem ActionPlaces STATUS_BAR_PLACE

List of usage examples for com.intellij.openapi.actionSystem ActionPlaces STATUS_BAR_PLACE

Introduction

In this page you can find the example usage for com.intellij.openapi.actionSystem ActionPlaces STATUS_BAR_PLACE.

Prototype

String STATUS_BAR_PLACE

To view the source code for com.intellij.openapi.actionSystem ActionPlaces STATUS_BAR_PLACE.

Click Source Link

Usage

From source file:com.intellij.ide.actionMacro.actions.StartStopMacroRecordingAction.java

License:Apache License

public void update(AnActionEvent e) {
    boolean isRecording = ActionMacroManager.getInstance().isRecording();

    e.getPresentation().setText(isRecording ? IdeBundle.message("action.stop.macro.recording")
            : IdeBundle.message("action.start.macro.recording"));

    if (ActionPlaces.STATUS_BAR_PLACE.equals(e.getPlace())) {
        e.getPresentation().setIcon(AllIcons.Ide.Macro.Recording_stop);
    } else {/*  w w  w . j a v a  2 s.co  m*/
        e.getPresentation().setIcon(null);
    }
}