Search in sources :

Example 1 with CollapseAllAction

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);
}
Also used : CalculateStatisticsAction(net.sourceforge.pmd.eclipse.ui.views.actions.CalculateStatisticsAction) PriorityFilterAction(net.sourceforge.pmd.eclipse.ui.views.actions.PriorityFilterAction) Action(org.eclipse.jface.action.Action) ProjectFilterAction(net.sourceforge.pmd.eclipse.ui.views.actions.ProjectFilterAction) ViolationPresentationTypeAction(net.sourceforge.pmd.eclipse.ui.views.actions.ViolationPresentationTypeAction) CollapseAllAction(net.sourceforge.pmd.eclipse.ui.views.actions.CollapseAllAction) PriorityFilterAction(net.sourceforge.pmd.eclipse.ui.views.actions.PriorityFilterAction) CollapseAllAction(net.sourceforge.pmd.eclipse.ui.views.actions.CollapseAllAction) CalculateStatisticsAction(net.sourceforge.pmd.eclipse.ui.views.actions.CalculateStatisticsAction) Separator(org.eclipse.jface.action.Separator)

Example 2 with 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);
}
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)2 CalculateStatisticsAction (net.sourceforge.pmd.eclipse.ui.views.actions.CalculateStatisticsAction)1 ExpandAllAction (net.sourceforge.pmd.eclipse.ui.views.actions.ExpandAllAction)1 PriorityFilterAction (net.sourceforge.pmd.eclipse.ui.views.actions.PriorityFilterAction)1 ProjectFilterAction (net.sourceforge.pmd.eclipse.ui.views.actions.ProjectFilterAction)1 ViolationPresentationTypeAction (net.sourceforge.pmd.eclipse.ui.views.actions.ViolationPresentationTypeAction)1 Action (org.eclipse.jface.action.Action)1 IToolBarManager (org.eclipse.jface.action.IToolBarManager)1 Separator (org.eclipse.jface.action.Separator)1 IActionBars (org.eclipse.ui.IActionBars)1