You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
854 B
32 lines
854 B
package com.origin.rac.handler;
|
|
|
|
import com.teamcenter.rac.aif.AbstractAIFUIApplication;
|
|
import com.teamcenter.rac.aifrcp.AIFUtility;
|
|
import com.teamcenter.rac.util.MessageBox;
|
|
import org.eclipse.core.commands.AbstractHandler;
|
|
import org.eclipse.core.commands.ExecutionEvent;
|
|
import org.eclipse.core.commands.ExecutionException;
|
|
|
|
public abstract class AbstractWXYSJHandler
|
|
extends AbstractHandler
|
|
{
|
|
private AbstractAIFUIApplication application;
|
|
|
|
public Object execute(ExecutionEvent arg0)
|
|
throws ExecutionException
|
|
{
|
|
this.application = AIFUtility.getCurrentApplication();
|
|
try
|
|
{
|
|
startRunning(this.application);
|
|
}
|
|
catch (Exception exception)
|
|
{
|
|
MessageBox.post(exception, true);
|
|
}
|
|
return null;
|
|
}
|
|
|
|
protected abstract void startRunning(AbstractAIFUIApplication paramAbstractAIFUIApplication);
|
|
}
|