1 11 package org.eclipse.jdt.internal.junit.ui; 12 13 import org.eclipse.ui.PlatformUI; 14 15 import org.eclipse.jface.action.Action; 16 17 20 public class RerunAction extends Action { 21 private String fTestId; 22 private String fClassName; 23 private String fTestName; 24 private TestRunnerViewPart fTestRunner; 25 private String fLaunchMode; 26 27 30 public RerunAction(String actionName, TestRunnerViewPart runner, String testId, String className, String testName, 31 String launchMode) { 32 super(actionName); 33 PlatformUI.getWorkbench().getHelpSystem().setHelp(this, IJUnitHelpContextIds.RERUN_ACTION); 34 fTestRunner= runner; 35 fTestId= testId; 36 fClassName= className; 37 fTestName= testName; 38 fLaunchMode= launchMode; 39 } 40 41 44 public void run() { 45 fTestRunner.rerunTest(fTestId, fClassName, fTestName, fLaunchMode); 46 } 47 } 48 | Popular Tags |