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

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

Introduction

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

Prototype

String CHANGES_VIEW_TOOLBAR

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

Click Source Link

Usage

From source file:org.jfrog.idea.ui.xray.XrayToolWindow.java

private JComponent createActionsToolbar() {
    DefaultActionGroup mainGroup = new DefaultActionGroup();

    mainGroup.addAction(ActionManager.getInstance().getAction("Xray.Refresh"));
    mainGroup.add(new CollapseAllAction(componentsTree));
    mainGroup.add(new ExpandAllAction(componentsTree));
    mainGroup.addSeparator();//  w w w .j  av a2s  .  c om
    mainGroup.add(new FilterAction(new IssueFilterMenu()));
    mainGroup.add(new FilterAction(new LicenseFilterMenu(project)));

    ActionToolbar toolbar = ActionManager.getInstance().createActionToolbar(ActionPlaces.CHANGES_VIEW_TOOLBAR,
            mainGroup, true);
    JPanel panel = new JPanel(new MigLayout("ins 0, fill", "[left]0[left, fill]push[right]", "center"));
    panel.add(toolbar.getComponent());
    return panel;
}