Bug 90832 [JUnit] Run As... launches application on cancel.
Version: 3.1.0 Build id: N20050408-0010 - created two JUnit plugin test launchs - Then from the package explorer chose the RCPTestSuite in org.eclipse.ui.tests.rcp - popup the menu choose Run As > JUnit Plugin Test - dialog opens with two choices, - hit cancel - test launched anyway
org.eclipse.jdt.junit/src/org/eclipse/jdt/internal/junit/launcher/JUnitLaunchShortcut.java
/**
	 * @see ILaunchShortcut#launch(IEditorPart, String)
	 */
	public void launch(IEditorPart editor, String mode) {
		IJavaElement element= null;
		IEditorInput input = editor.getEditorInput();
		element = (IJavaElement) input.getAdapter(IJavaElement.class);
		if (element != null) {
			searchAndLaunch(new Object[] {element}, mode);
		} 
	}
	
	/**
	 * @see ILaunchShortcut#launch(ISelection, String)
	 */
	public void launch(ISelection selection, String mode) {
		if (selection instanceof IStructuredSelection) {
			searchAndLaunch(((IStructuredSelection)selection).toArray(), mode);
		}