this);
final DefaultActionGroup actionGrp = new DefaultActionGroup("POM Manager", false);
actionGrp.add(new ExecuteGoalAction());
actionGrp.addSeparator();
actionGrp.add(new AddPluginGoalToPomAction());
actionGrp.add(new RemovePluginGoalFromPomAction());
actionGrp.addSeparator();
actionGrp.add(new RefreshPomToolWindowAction());
actionGrp.add(autoScrollAction);
actionGrp.addSeparator();
actionGrp.add(cmnActionsMgr.createCollapseAllAction(treeExpanded));
actionGrp.add(cmnActionsMgr.createExpandAllAction(treeExpanded));
final ActionToolbar toolbar = actionMgr.createActionToolbar(PLACE, actionGrp, true);
add(toolbar.getComponent(), BorderLayout.PAGE_START);
//
//install popup menu on tree
//
final DefaultActionGroup popupGrp = new DefaultActionGroup("POM Manager Popup", true);
popupGrp.add(new ExecuteGoalAction());
actionGrp.addSeparator();
popupGrp.add(new AddPluginGoalToPomAction());
popupGrp.add(new RemovePluginGoalFromPomAction());
actionGrp.addSeparator();
popupGrp.add(new SynchronizeWithModuleActionGroup(project));
PopupHandler.installPopupHandler(tree, popupGrp, PLACE, actionMgr);
}