private JComponent createToolbar() {
    JPanel container = new JPanel(new BorderLayout());

    ActionToolbarImpl addGroupToolbar = (ActionToolbarImpl)ActionManager.getInstance()
      .createActionToolbar(ActionPlaces.TOOLBAR, new DefaultActionGroup(new AddActionActionTreeSelectionAction()), true);
    addGroupToolbar.setTargetComponent(myPanel);
    addGroupToolbar.setActionButtonBorder(new JBEmptyBorder(0));
    addGroupToolbar.setBorder(new JBEmptyBorder(0));
    container.add(addGroupToolbar, BorderLayout.WEST);

    ActionToolbarImpl toolbar = (ActionToolbarImpl)ActionManager.getInstance()
      .createActionToolbar(ActionPlaces.TOOLBAR,
                           new DefaultActionGroup(new EditIconAction(), new MoveUpAction(), new MoveDownAction(), new Separator(),
                                                  new RemoveAction(), getRestoreGroup()), true);
    toolbar.setForceMinimumSize(true);
    toolbar.setLayoutStrategy(ToolbarLayoutStrategy.NOWRAP_STRATEGY);
    toolbar.setTargetComponent(myTopPanel);
    container.add(toolbar, BorderLayout.CENTER);

    return container;
  }
private JComponent createToolbar()