0
我正在开发'Pure'Eclipse 4 RCP应用程序。我想用e3.x中的page.openEditor(IEditorInput input, String editorId, boolean activate);
这样的方法打开一个'部分'如何打开零件而不重复?
我该怎么做?
我正在开发'Pure'Eclipse 4 RCP应用程序。我想用e3.x中的page.openEditor(IEditorInput input, String editorId, boolean activate);
这样的方法打开一个'部分'如何打开零件而不重复?
我该怎么做?
您使用EPartService
管理部分:
@Inject
private EPartService partService;
MPart mpart = partService.showPart("part id", PartState.ACTIVATE);
如果必要的话你就可以访问你的部分类:
MyPart myPart = (MyPart)mpart.getObject();
谢谢!格雷格 - 449。我会试试看 –