Search in sources :

Example 1 with BaseAction

use of jetbrains.communicator.idea.actions.BaseAction in project intellij-plugins by JetBrains.

the class StatusToolbarImpl method createBottomPanel.

private Component createBottomPanel() {
    DefaultActionGroup actions = new DefaultActionGroup();
    for (Class<? extends NamedUserCommand> toolbarAction : getToolbarActions()) {
        actions.add(new BaseAction(toolbarAction));
    }
    final ActionToolbar actionToolbar = ActionManager.getInstance().createActionToolbar("BottomToolbar", actions, true);
    actionToolbar.setLayoutPolicy(ActionToolbar.NOWRAP_LAYOUT_POLICY);
    return actionToolbar.getComponent();
}
Also used : BaseAction(jetbrains.communicator.idea.actions.BaseAction) ActionToolbar(com.intellij.openapi.actionSystem.ActionToolbar) DefaultActionGroup(com.intellij.openapi.actionSystem.DefaultActionGroup)

Aggregations

ActionToolbar (com.intellij.openapi.actionSystem.ActionToolbar)1 DefaultActionGroup (com.intellij.openapi.actionSystem.DefaultActionGroup)1 BaseAction (jetbrains.communicator.idea.actions.BaseAction)1