1 11 package org.eclipse.jdt.internal.junit.ui; 12 13 import org.eclipse.jface.action.Action; 14 15 class ShowNextFailureAction extends Action { 16 17 private TestRunnerViewPart fPart; 18 19 public ShowNextFailureAction(TestRunnerViewPart part) { 20 super(JUnitMessages.ShowNextFailureAction_label); 21 setDisabledImageDescriptor(JUnitPlugin.getImageDescriptor("dlcl16/select_next.gif")); setHoverImageDescriptor(JUnitPlugin.getImageDescriptor("elcl16/select_next.gif")); setImageDescriptor(JUnitPlugin.getImageDescriptor("elcl16/select_next.gif")); setToolTipText(JUnitMessages.ShowNextFailureAction_tooltip); 25 fPart= part; 26 } 27 28 public void run() { 29 fPart.selectNextFailure(); 30 } 31 } 32 | Popular Tags |