package org.agmip.ui.acmoui;

import org.agmip.acmo.translators.AcmoTranslator;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;


public class TranslateRunner implements Runnable {
	private AcmoTranslator translator;
	private String inputDirectory;
	private String outputDirectory;
	private static Logger LOG = LoggerFactory.getLogger(TranslateRunner.class);
	
	public TranslateRunner(AcmoTranslator translator, String inputDirectory, 
			String outputDirectory) {
		this.translator = translator;
		this.inputDirectory = inputDirectory;
		this.outputDirectory = outputDirectory;
	}
	
	
	@Override
	public void run() {
		LOG.debug("Starting new thread!");
		boolean success = translator.execute(inputDirectory, outputDirectory);
		if (!success) {
			// TODO: Something to relate to the user something bad has happened.
		}
		
	}
}
package org.agmip.ui.acmoui;

import java.io.File;
import org.agmip.acmo.translators.AcmoTranslator;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;


public class TranslateRunner implements Runnable {
	private AcmoTranslator translator;
	private String inputDirectory;
	private String outputDirectory;
	private static Logger LOG = LoggerFactory.getLogger(TranslateRunner.class);
	
	public TranslateRunner(AcmoTranslator translator, String inputDirectory, 
			String outputDirectory) {
		this.translator = translator;
		this.inputDirectory = inputDirectory;
		this.outputDirectory = outputDirectory;
	}
	
	
	@Override
	public void run() {
		LOG.debug("Starting new thread!");
		File ret = translator.execute(inputDirectory, outputDirectory);
		if (ret != null && ret.exists()) {
			// TODO: Something to relate to the user something bad has happened.
		}
		
	}
}
Change return type handling for AcmoTranslator
Change return type handling for AcmoTranslator