}
}
})
.addExtraAction(AnActionButton.fromAction(actionManager.createExpandAllAction(myTreeExpander, myTree)))
.addExtraAction(AnActionButton.fromAction(actionManager.createCollapseAllAction(myTreeExpander, myTree)))
.addExtraAction(new AnActionButton("Open Struts 2 plugin documentation…", AllIcons.Actions.Help) {
@Override
public void actionPerformed(AnActionEvent e) {
BrowserUtil.browse("http://confluence.jetbrains.com/pages/viewpage.action?pageId=35367");
}
})
.disableUpDownActions()
.createPanel());
myEditButton = ToolbarDecorator.findEditButton(myTreePanel);
myRemoveButton = ToolbarDecorator.findRemoveButton(myTreePanel);
AnActionButton addButton = ToolbarDecorator.findAddButton(myTreePanel);
assert addButton != null;
dumbService.makeDumbAware(addButton.getContextComponent(), this);
dumbService.makeDumbAware(myEditButton.getContextComponent(), this);
}