You are on page 1of 1

package com.origin.rac.sac.

handler;

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

import com.origin.rac.sac.changerowner.ChangerOwnerAction;
import com.teamcenter.rac.aif.AbstractAIFUIApplication;
import com.teamcenter.rac.aifrcp.AIFUtility;

public class ChangeOwnerHandler extends AbstractHandler {

public Object execute(ExecutionEvent arg0) throws ExecutionException {


AbstractAIFUIApplication application =
AIFUtility.getCurrentApplication();
ChangerOwnerAction action = new ChangerOwnerAction(application, null);
new Thread(action).start();
return null;
}

You might also like