|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.softevo.ample.PopupMenuAction
public class PopupMenuAction
Behavior of Ample's item in the context menu of the Failure tab in the JUnit Results view.
Field Summary | |
---|---|
private org.eclipse.jdt.internal.junit.ui.TestRunInfo |
selectedTest
Test currently selected in the active view tab. |
private org.eclipse.jdt.internal.junit.ui.TestRunnerViewPart |
viewPart
Instance of the JUnit Results view part. |
Constructor Summary | |
---|---|
PopupMenuAction()
|
Method Summary | |
---|---|
private void |
blankRankingView()
|
void |
init(org.eclipse.ui.IViewPart view)
|
private void |
launchAmple(org.eclipse.jdt.internal.junit.ui.TestRunInfo failingRun,
org.eclipse.jdt.internal.junit.ui.TestRunInfo[] passingRuns)
Instruments project's byte code files and reruns the tests. |
void |
run(org.eclipse.jface.action.IAction action)
|
void |
selectionChanged(org.eclipse.jface.action.IAction action,
org.eclipse.jface.viewers.ISelection selection)
|
private static void |
showErrorFailingRequired(org.eclipse.swt.widgets.Shell shell)
Displays an error message dialog stating Ample should be run when a failing test is selected. |
private static void |
showErrorTestsAreRunning(org.eclipse.swt.widgets.Shell shell)
Displays an error message dialog stating Ample should be run when all JUnits have ended. |
private static void |
showErrorTooFewPassing(org.eclipse.swt.widgets.Shell shell)
Displays an error message dialog stating there are too few passing passing tests for Ample to run. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private org.eclipse.jdt.internal.junit.ui.TestRunnerViewPart viewPart
private org.eclipse.jdt.internal.junit.ui.TestRunInfo selectedTest
Constructor Detail |
---|
public PopupMenuAction()
Method Detail |
---|
public void init(org.eclipse.ui.IViewPart view)
init
in interface org.eclipse.ui.IViewActionDelegate
public void run(org.eclipse.jface.action.IAction action)
run
in interface org.eclipse.ui.IActionDelegate
public void selectionChanged(org.eclipse.jface.action.IAction action, org.eclipse.jface.viewers.ISelection selection)
selectionChanged
in interface org.eclipse.ui.IActionDelegate
private void blankRankingView()
private void launchAmple(org.eclipse.jdt.internal.junit.ui.TestRunInfo failingRun, org.eclipse.jdt.internal.junit.ui.TestRunInfo[] passingRuns)
testRuns
- Array of test runs to be launched.private static void showErrorTestsAreRunning(org.eclipse.swt.widgets.Shell shell)
shell
- Owner of the message dialog that will appear.private static void showErrorFailingRequired(org.eclipse.swt.widgets.Shell shell)
shell
- Owner of the message dialog that will appear.private static void showErrorTooFewPassing(org.eclipse.swt.widgets.Shell shell)
shell
- Owner of the message dialog that will appear.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |