package com.connor.erp.searchImpResult;

import org.eclipse.core.commands.AbstractHandler;
import org.eclipse.core.commands.ExecutionEvent;
import org.eclipse.core.commands.ExecutionException;

import com.teamcenter.rac.aif.AbstractAIFUIApplication;
import com.teamcenter.rac.aifrcp.AIFUtility;
import com.teamcenter.rac.kernel.TCSession;

public class SearchImpResultHandler extends AbstractHandler{

	@Override
	public Object execute(ExecutionEvent arg0) throws ExecutionException {
		// TODO Auto-generated method stub
	    AbstractAIFUIApplication application = AIFUtility.getCurrentApplication();
	    TCSession session = (TCSession)application.getSession();
	    new Thread(new SearchImpResultDialog(application, session)).start();
		return null;
	}

}
