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);
        }
}

  

posted @ 2022-11-07 11:39  信铁寒胜  阅读(63)  评论(0编辑  收藏  举报