EclipseRCP从3迁移到4:如何替换PresentationFactory.createEditorPresentation()
我们有一个基于Eclipse3.7的大型RCP,我们希望将其迁移到Eclipse4。我们能够使用兼容层成功地构建系统 问题在于:我们使用自己的WorkbenchPresentationFactory实现,而该实现反过来又使用specialStackPresentation:EclipseRCP从3迁移到4:如何替换PresentationFactory.createEditorPresentation(),eclipse,eclipse-rcp,Eclipse,Eclipse Rcp,我们有一个基于Eclipse3.7的大型RCP,我们希望将其迁移到Eclipse4。我们能够使用兼容层成功地构建系统 问题在于:我们使用自己的WorkbenchPresentationFactory实现,而该实现反过来又使用specialStackPresentation: public class PresentationFactory extends WorkbenchPresentationFactory { public PresentationFactory() {}
public class PresentationFactory extends WorkbenchPresentationFactory {
public PresentationFactory() {}
@Override
public StackPresentation createEditorPresentation(Composite parent, IStackPresentationSite site) {
return new SimpleStackPresentation(parent, site);
}
}
这个SimpleStackPresentation基本上是原始Eclipse3.7StackPresentation的一个副本,并修改了附带的“helper”类,以便一次只能看到一个编辑器,编辑器从不关闭,而是隐藏
现在,Eclipse 4正式反对使用PresentationFactory,请参见:
我是否开始在Eclipse4中与兼容层一起实现相同的行为
非常感谢您的帮助!
当做
sascha您可能可以将a用于堆栈。您可能可以将a用于堆栈。