private void searchAndLaunch(String mode, Object... scope) {
		final ElementDescription element = searchAndSelect(true, scope);
		if (element != null) {
			try {
				launch(element.projectName, element.elementName, mode);
			} catch (CoreException e) {
				SARLEclipsePlugin.getDefault().openError(getShell(),
						io.sarl.eclipse.util.Messages.AbstractSarlScriptInteractiveSelector_1,
						e.getStatus().getMessage(), e);
			}
		}
	}
private void searchAndLaunch ( String mode , Object ... scope ) { final ElementDescription element = searchAndSelect ( true , scope ) ; if ( element != null ) { try { launch ( element . projectName , element . elementName , mode ) ; } catch ( CoreException e ) { SARLEclipsePlugin . getDefault ( ) . openError ( getShell ( ) , io . sarl . eclipse . util . Messages . AbstractSarlScriptInteractiveSelector_1 , e . getStatus ( ) . getMessage ( ) , e ) ; } } }
Resolves an element type that can be launched from the given scope and launches in the
specified mode.

@param mode launch mode.
@param scope the elements to consider for an element type that can be launched.