Search in sources :

Example 1 with ViolationPresentationTypeAction

use of net.sourceforge.pmd.eclipse.ui.views.actions.ViolationPresentationTypeAction in project pmd-eclipse-plugin by pmd.

the class ViolationOverviewMenuManager method createShowTypeSubmenu.

/**
 * Create menu for selecting the show type.
 * @param manager
 */
private void createShowTypeSubmenu(IMenuManager manager) {
    final Action typeAction1 = new ViolationPresentationTypeAction(this.overview, ViolationOverview.SHOW_MARKERS_FILES);
    final Action typeAction2 = new ViolationPresentationTypeAction(this.overview, ViolationOverview.SHOW_FILES_MARKERS);
    final Action typeAction3 = new ViolationPresentationTypeAction(this.overview, ViolationOverview.SHOW_PACKAGES_FILES_MARKERS);
    manager.add(typeAction1);
    manager.add(typeAction2);
    manager.add(typeAction3);
}
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) ViolationPresentationTypeAction(net.sourceforge.pmd.eclipse.ui.views.actions.ViolationPresentationTypeAction)

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