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

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

Introduction

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

Prototype

String TOOLBAR

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

Click Source Link

Usage

From source file:com.jetbrains.lang.dart.ide.errorTreeView.DartProblemsViewPanel.java

License:Apache License

private void popupInvoked(final Component component, final int x, final int y) {
    final DefaultActionGroup group = new DefaultActionGroup();
    if (getData(CommonDataKeys.NAVIGATABLE.getName()) != null) {
        group.add(ActionManager.getInstance().getAction(IdeActions.ACTION_EDIT_SOURCE));
    }/*from   w w w .jav  a  2s . c om*/

    group.add(ActionManager.getInstance().getAction(IdeActions.ACTION_COPY));

    final ActionPopupMenu menu = ActionManager.getInstance().createActionPopupMenu(ActionPlaces.TOOLBAR, group);
    menu.getComponent().show(component, x, y);
}

From source file:com.jetbrains.lang.dart.ide.errorTreeView.DartProblemsViewPanel.java

License:Apache License

@NotNull
private JComponent createToolbar() {
    final DefaultActionGroup group = new DefaultActionGroup();

    addReanalyzeActions(group);//  w w  w. j  a va  2s .  c  o m
    group.addSeparator();

    addAutoScrollToSourceAction(group);
    addGroupBySeverityAction(group);
    group.addAction(new FilterProblemsAction());
    group.addSeparator();

    group.addAction(new ContextHelpAction("reference.toolWindow.DartAnalysis"));

    return ActionManager.getInstance().createActionToolbar(ActionPlaces.TOOLBAR, group, false).getComponent();
}