/*******************************************************************************
* Copyright (c) 2010 Sven Kiera
* All rights reserved. This program and the accompanying materials
* are made available under the terms of the Eclipse Public License v1.0
* which accompanies this distribution, and is available at
* http://www.eclipse.org/legal/epl-v10.html
*******************************************************************************/
package org.phpsrc.eclipse.pti.tools.phpdepend.ui.views.metricrunner;
import org.eclipse.jface.action.Action;
import org.phpsrc.eclipse.pti.tools.phpdepend.PHPDependPlugin;
class ShowNextFailureAction extends Action {
private MetricRunnerViewPart fPart;
public ShowNextFailureAction(MetricRunnerViewPart part) {
super("Next Failure");
setDisabledImageDescriptor(PHPDependPlugin.getImageDescriptor("dlcl16/select_next.gif")); //$NON-NLS-1$
setHoverImageDescriptor(PHPDependPlugin.getImageDescriptor("elcl16/select_next.gif")); //$NON-NLS-1$
setImageDescriptor(PHPDependPlugin.getImageDescriptor("elcl16/select_next.gif")); //$NON-NLS-1$
setToolTipText("Next Failure");
fPart = part;
}
public void run() {
fPart.selectNextFailure();
}
}