1

我有一个类将 IEditorPart 实现为 MultiPageEditorPart 中的页面。现在我想用 ActionBarContributor 和其他 Eclipse 编辑器扩展来扩展它的功能。为此,我为 org.eclipse.ui.editors 定义了一个扩展,它指向我的类。当我使用 new 运算符显式创建我的类的实例时,这个扩展永远不会被调用。Workbench 允许创建编辑器,但在新的编辑器窗口中打开它们。

应该如何创建 IEditorPart 以便将所有扩展应用到它并且可以用作 MultiPageEditorPart.addPage() 参数?

4

0 回答 0