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

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

Introduction

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

Prototype

String TYPE_HIERARCHY_VIEW_TOOLBAR

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

Click Source Link

Usage

From source file:com.intellij.ide.hierarchy.TypeHierarchyBrowserBase.java

License:Apache License

@Override
@NotNull
protected String getActionPlace() {
    return ActionPlaces.TYPE_HIERARCHY_VIEW_TOOLBAR;
}

From source file:com.intellij.slicer.SlicePanel.java

License:Apache License

@NotNull
private ActionToolbar createToolbar() {
    final DefaultActionGroup actionGroup = new DefaultActionGroup();
    actionGroup.add(new MyRefreshAction(myTree));
    if (isToShowAutoScrollButton()) {
        actionGroup.add(myAutoScrollToSourceHandler.createToggleAction());
    }/*from w w  w  .  j a  v  a 2 s  . c  o m*/
    if (isToShowCloseButton()) {
        actionGroup.add(new CloseAction());
    }
    if (isToShowPreviewButton()) {
        actionGroup.add(new ToggleAction(UsageViewBundle.message("preview.usages.action.text"), "preview",
                AllIcons.Actions.PreviewDetails) {
            @Override
            public boolean isSelected(AnActionEvent e) {
                return isPreview();
            }

            @Override
            public void setSelected(AnActionEvent e, boolean state) {
                setPreview(state);
                layoutPanel();
            }
        });
    }

    if (myBuilder.dataFlowToThis) {
        actionGroup.add(new GroupByLeavesAction(myBuilder));
        actionGroup.add(new CanItBeNullAction(myBuilder));
    }

    //actionGroup.add(new ContextHelpAction(HELP_ID));

    return ActionManager.getInstance().createActionToolbar(ActionPlaces.TYPE_HIERARCHY_VIEW_TOOLBAR,
            actionGroup, false);
}