且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

如何在Eclipse RCP E4(而非E3)中以编程方式重置透视图

更新时间:2023-08-21 22:21:52

使用 EModelService 的$ c> resetPerspective 方法:

Use the resetPerspective method of EModelService:

public void resetPerspectiveModel(MPerspective persp, MWindow window)

请注意 PlatformUI 和关联的API不能在纯e4应用程序中使用。

Note that PlatformUI and associated APIs can't be used in a pure e4 application.