Search in sources :

Example 1 with ExpandAllAction

use of net.sourceforge.pmd.eclipse.ui.views.actions.ExpandAllAction 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);
}
Also used : CollapseAllAction(net.sourceforge.pmd.eclipse.ui.views.actions.CollapseAllAction) IToolBarManager(org.eclipse.jface.action.IToolBarManager) ExpandAllAction(net.sourceforge.pmd.eclipse.ui.views.actions.ExpandAllAction) IActionBars(org.eclipse.ui.IActionBars)

Aggregations

CollapseAllAction (net.sourceforge.pmd.eclipse.ui.views.actions.CollapseAllAction)1 ExpandAllAction (net.sourceforge.pmd.eclipse.ui.views.actions.ExpandAllAction)1 IToolBarManager (org.eclipse.jface.action.IToolBarManager)1 IActionBars (org.eclipse.ui.IActionBars)1