if (dialog.open() == ElementListSelectionDialog.OK) {
if (dialog.open() == Window.OK) {
	protected IType chooseType(IType[] types, String mode) {		ElementListSelectionDialog dialog= new ElementListSelectionDialog(getShell(), new JavaElementLabelProvider(JavaElementLabelProvider.SHOW_POST_QUALIFIED));		dialog.setElements(types);		dialog.setTitle(JUnitMessages.getString("LaunchTestAction.dialog.title2")); //$NON-NLS-1$		if (mode.equals(ILaunchManager.DEBUG_MODE)) {			dialog.setMessage(JUnitMessages.getString("LaunchTestAction.message.selectTestToRun"));  //$NON-NLS-1$		} else {			dialog.setMessage(JUnitMessages.getString("LaunchTestAction.message.selectTestToDebug")); //$NON-NLS-1$		}		dialog.setMultipleSelection(false);		if (dialog.open() == ElementListSelectionDialog.OK) {			return (IType)dialog.getFirstResult();		}		return null;	}