use of net.sourceforge.pmd.eclipse.ui.views.actions.CollapseAllAction in project pmd-eclipse-plugin by pmd.
the class ViolationOverviewMenuManager method createActionBars.
/**
* Creates the ActionBars
*/
public void createActionBars(IToolBarManager manager) {
// Action for calculating the #violations/loc
final Action calculateStats = new CalculateStatisticsAction(overview);
manager.add(calculateStats);
manager.add(new Separator());
// the PriorityFilter-Actions
for (PriorityFilterAction priorityAction : priorityActions) {
manager.add(priorityAction);
}
manager.add(new Separator());
Action collapseAllAction = new CollapseAllAction(overview.getViewer());
manager.add(collapseAllAction);
}
use of net.sourceforge.pmd.eclipse.ui.views.actions.CollapseAllAction in project pmd-eclipse-plugin by pmd.
the class ASTView method addToolbarControls.
private void addToolbarControls() {
IActionBars aBars = getViewSite().getActionBars();
IToolBarManager manager = aBars.getToolBarManager();
manager.add(new ExpandAllAction(page.astViewer()));
manager.add(new CollapseAllAction(page.astViewer()));
addViewFilterOptions(aBars);
}
Aggregations