Search in sources :

Example 1 with CalculateStatisticsAction

use of net.sourceforge.pmd.eclipse.ui.views.actions.CalculateStatisticsAction 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)

Aggregations

CalculateStatisticsAction (net.sourceforge.pmd.eclipse.ui.views.actions.CalculateStatisticsAction)1 CollapseAllAction (net.sourceforge.pmd.eclipse.ui.views.actions.CollapseAllAction)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 Separator (org.eclipse.jface.action.Separator)1