SWT如何获取Shell对象
1、SWT如何获取Shell对象
public class MyTestHandler extends AbstractHandler { AbstractAIFUIApplication app=null; TCSession session=null; @Override public Object execute(ExecutionEvent arg0) throws ExecutionException { // TODO Auto-generated method stub app = AIFUtility.getCurrentApplication(); session=(TCSession) app.getSession(); Shell localShell = HandlerUtil.getActiveShellChecked(arg0); } }