Programmatically showing a View from an Eclipse Plug-in

后端 未结 4 1019

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 04:15

    You are probably looking for this:

    PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().showView("viewId");
    

提交回复
热议问题