Programmatically showing a View from an Eclipse Plug-in

后端 未结 4 1017

I have a plug-in to an Eclipse RCP application that has a view. After an event occurs in the RCP application, the plug-in is instantiated, its methods are called to populat

4条回答
  •  無奈伤痛
    2020-11-29 03:57

    If called from handler of a command

    HandlerUtil.getActiveWorkbenchWindow(event).getActivePage().showView(viewId);
    

    would be better, as I know.

提交回复
热议问题