<commit_before>package org.testeditor.dsl.common.ui.utils

import org.eclipse.core.runtime.IProgressMonitor
import org.eclipse.jface.operation.IRunnableWithProgress
import org.eclipse.jface.dialogs.ProgressMonitorDialog
import org.eclipse.swt.widgets.Display
import java.lang.reflect.InvocationTargetException

class ProgressMonitorRunner {
	
	def run((IProgressMonitor)=>void runnable) {
			new ProgressMonitorDialog(Display.current.activeShell).run(false, false,
				new IRunnableWithProgress() {

					override run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
						runnable.apply(monitor)
					}

				})

	}
	

//	IProgressMonitor monitor
//
//	def void run(IRunnableWithProgress runnable) {
//		monitor = new ProgressMonitorDialog(Display.current.activeShell)
//		monitor.run(false, false, runnable)
//	}
//
//	def getMonitor() {
//		monitor
//	}

}<commit_msg>TE-346 Wizard to create simple web test project<commit_after>/*******************************************************************************
 * Copyright (c) 2012 - 2016 Signal Iduna Corporation and others.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 * 
 * Contributors:
 * Signal Iduna Corporation - initial API and implementation
 * akquinet AG
 * itemis AG
 *******************************************************************************/
package org.testeditor.dsl.common.ui.utils

import java.lang.reflect.InvocationTargetException
import org.eclipse.core.runtime.IProgressMonitor
import org.eclipse.jface.dialogs.ProgressMonitorDialog
import org.eclipse.jface.operation.IRunnableWithProgress
import org.eclipse.swt.widgets.Display

class ProgressMonitorRunner {
	
	def run((IProgressMonitor)=>void runnable) {
			new ProgressMonitorDialog(Display.current.activeShell).run(false, false,
				new IRunnableWithProgress() {

					override run(IProgressMonitor monitor) throws InvocationTargetException, InterruptedException {
						runnable.apply(monitor)
					}

				})

	}
	
}
{'fraction_non_alphanumeric': 0.15676416819012798, 'fraction_numerical': 0.006855575868372943, 'mean_word_length': 5.03030303030303, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 5, 'https://': 0, 'lorem ipsum': 0, 'www.': 1, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2503323', 'n_tokens_mistral': 664, 'n_tokens_neox': 569, 'n_words': 132}