ActionToolbarImpl () { ActionGroup addGroup = new DefaultActionGroup(new AddActionActionTreeSelectionAction()/*, new AddGroupAction()*/, new AddSeparatorAction()); addGroup.getTemplatePresentation().setText(IdeBundle.message("group.customizations.add.action.group")); addGroup.getTemplatePresentation().setIcon(AllIcons.General.Add); addGroup.setPopup(true); ActionGroup restoreGroup = getRestoreGroup(); ActionToolbarImpl toolbar = (ActionToolbarImpl)ActionManager.getInstance() .createActionToolbar(ActionPlaces.TOOLBAR, new DefaultActionGroup(addGroup, new RemoveAction(), new EditIconAction(), new MoveUpAction(), new MoveDownAction(), restoreGroup), true); toolbar.setForceMinimumSize(true); toolbar.setLayoutPolicy(ActionToolbar.NOWRAP_LAYOUT_POLICY); toolbar.setTargetComponent(myTopPanel); return toolbar; }