Examples of ActionGroup


Examples of com.intellij.openapi.actionSystem.ActionGroup

    });

    StatusToolbar statusToolbar = ((StatusToolbar) myContainer.getComponentInstanceOfType(StatusToolbar.class));

    DefaultActionGroup toolbarActions = new DefaultActionGroup();
    ActionGroup actions = (ActionGroup)myActionManager.getAction("IDEtalk");
    if (actions != null) {
      toolbarActions.addAll(actions);
    }
    toolbarActions.add(new ContextHelpAction("reference.toolWindows.idetalk"));

    ActionGroup treeActions = (ActionGroup) myActionManager.getAction("IDEtalk_Tree");

    JPanel toolbarPanel = new JPanel();
    toolbarPanel.setLayout(new BoxLayout(toolbarPanel, BoxLayout.X_AXIS));
    toolbarPanel.add(DropDownButton.wrap(new DropDownButton(new FindUsersAction(), IconUtil.getAddIcon())));
    toolbarPanel.add(createToolbar(toolbarActions).getComponent());

    toolbarPanel.add(Box.createHorizontalStrut(10));
    toolbarPanel.add(new SeparatorComponent(JBColor.LIGHT_GRAY, SeparatorOrientation.VERTICAL));
    toolbarPanel.add(Box.createHorizontalStrut(3));
    toolbarPanel.add(DropDownButton.wrap(new OptionsButton()));
    toolbarPanel.add(statusToolbar.createComponent());

    toolbarPanel.add(new JPanel() {
      @Override
      public Dimension getPreferredSize() {
        return new Dimension(Short.MAX_VALUE, 10);
      }
    });

    if (treeActions != null) {
      JComponent component = createToolbar(treeActions).getComponent();
      component.setMinimumSize(component.getPreferredSize());
      toolbarPanel.add(component);
    }

    toolbarPanel.setAlignmentX(0);
    myTopPanel.add(toolbarPanel);

    myPanel.add(myTopPanel, BorderLayout.NORTH);
    myPanel.add(ScrollPaneFactory.createScrollPane(myUserListComponent.getComponent()));

    ActionGroup group = (ActionGroup)myActionManager.getAction("IDEtalkPopup");
    if (group != null) {
      IDEAFacade.installPopupMenu(group, myUserListComponent.getTree(), myActionManager);
    }
  }
View Full Code Here

Examples of com.intellij.openapi.actionSystem.ActionGroup

        GitRepository repo = GitBranchUtil.getCurrentRepository(project);
        if (repo == null) {
            return null;
        }

        ActionGroup popupGroup = actions.getActions();
        ListPopup listPopup = new PopupFactoryImpl.ActionGroupPopup("Gitflow Actions", popupGroup, SimpleDataContext.getProjectContext(project), false, false, false, true, null, -1,
                null, null);

        return listPopup;
    }
View Full Code Here

Examples of com.intellij.openapi.actionSystem.ActionGroup

    @Nullable
    @Override
    public ListPopup getPopupStep() {

        ActionGroup popupGroup = getActions();
        ListPopup listPopup = new PopupFactoryImpl.ActionGroupPopup("Symfony2 Profiler", popupGroup, SimpleDataContext.getProjectContext(project), false, false, false, true, null, -1, null, null);

        return listPopup;

View Full Code Here

Examples of com.intellij.openapi.actionSystem.ActionGroup

      e.consume();
    }
  }

  public static void installPopupHandler(JComponent component, @NonNls String groupId, String place) {
    ActionGroup group = (ActionGroup)ActionManager.getInstance().getAction(groupId);
    installPopupHandler(component, group, place, ActionManager.getInstance());
  }
View Full Code Here

Examples of com.intellij.openapi.actionSystem.ActionGroup

        }

        configurationChanged();
        checkStylePlugin.getConfiguration().addConfigurationListener(this);

        final ActionGroup mainActionGroup = (ActionGroup)
                ActionManager.getInstance().getAction(MAIN_ACTION_GROUP);
        final ActionToolbar mainToolbar = ActionManager.getInstance().createActionToolbar(
                CheckStyleConstants.ID_TOOLWINDOW, mainActionGroup, false);

        final ActionGroup treeActionGroup = (ActionGroup)
                ActionManager.getInstance().getAction(TREE_ACTION_GROUP);
        final ActionToolbar treeToolbar = ActionManager.getInstance().createActionToolbar(
                CheckStyleConstants.ID_TOOLWINDOW, treeActionGroup, false);

        final Box toolBarBox = Box.createHorizontalBox();
View Full Code Here

Examples of org.controlsfx.control.action.ActionGroup

                                guideLine.relocate(clickEvent.getX(), 0);
                            }
                        });
                    }

                }, new ActionGroup("Zoom History", new Back(controller),
                        new Forward(controller))));
                chartContextMenu.setAutoHide(true);
                chartContextMenu.show(EventDetailChart.this, clickEvent.getScreenX(), clickEvent.getScreenY());
                clickEvent.consume();
            }
View Full Code Here

Examples of org.controlsfx.control.action.ActionGroup

    public final synchronized void setController(TimeLineController controller) {
        this.controller = controller;
        setModel(this.controller.getEventsModel());
        //we have defered creating context menu until control is available
        contextMenu = ActionUtils.createContextMenu(
                Arrays.asList(new ActionGroup("Zoom History", new Back(controller), new Forward(controller))));
        contextMenu.setAutoHide(true);
    }
View Full Code Here

Examples of org.controlsfx.control.action.ActionGroup

                .anyMatch((data) -> data.getXValue().equals(value) && data.getYValue().intValue() > 0);
    }

    private ContextMenu getContextMenu() {

        ContextMenu chartContextMenu = ActionUtils.createContextMenu(Arrays.asList(new ActionGroup("Zoom History", new Back(controller), new Forward(controller))));
        chartContextMenu.setAutoHide(true);
        return chartContextMenu;
    }
View Full Code Here

Examples of org.eclipse.ui.actions.ActionGroup

    }

    @Override
    protected void createActions() {
        super.createActions();
        ActionGroup esg;
        fActionGroups = new CompositeActionGroup(
                new ActionGroup[] { esg = new ErlangSearchActionGroup(this) });
        fContextMenuGroup = new CompositeActionGroup(new ActionGroup[] { esg });

        createCommonActions();
View Full Code Here

Examples of org.eclipse.ui.actions.ActionGroup

    }

    @Override
    protected void createActions() {
        super.createActions();
        ActionGroup esg;
        fActionGroups = new CompositeActionGroup(
                new ActionGroup[] { esg = new ErlangSearchActionGroup(this) });
        fContextMenuGroup = new CompositeActionGroup(new ActionGroup[] { esg });

        createCommonActions();
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.