Eclipse RCP最大化编辑器在迁移到Eclipse光子时不显示

Eclipse RCP最大化编辑器在迁移到Eclipse光子时不显示,eclipse,eclipse-rcp,Eclipse,Eclipse Rcp,我有一个RCP应用程序,我已经从EclipseIndigo迁移到EclipsePhoton。当我像以前一样打开编辑器时,没有编辑器出现 然而,编辑器确实被正确加载,因为我可以在最小化()时访问它,但是如果我尝试最大化它,它就会消失,只显示一个空白区域(),编辑器在eclipse indigo中显示 编辑器是在扩展点中定义的 <extension point="org.eclipse.ui.editors"> <editor class="arb

我有一个RCP应用程序,我已经从EclipseIndigo迁移到EclipsePhoton。当我像以前一样打开编辑器时,没有编辑器出现

然而,编辑器确实被正确加载,因为我可以在最小化()时访问它,但是如果我尝试最大化它,它就会消失,只显示一个空白区域(),编辑器在eclipse indigo中显示

编辑器是在扩展点中定义的

  <extension
     point="org.eclipse.ui.editors">
  <editor
        class="arbolDefinicion.editors.ADLEditor"
        contributorClass="org.eclipse.ui.texteditor.BasicTextEditorActionContributor"
        extensions="adl"
        icon="icons/c_complex_object.ico"
        id="arbolDefinicion.editors.ADLEditor"
        name="Editor ADL"/>
  </extension>
然后使用

((AbstractDecoratedTextEditor) window.getActivePage().getActiveEditor()).getDocumentProvider().getDocument(((AbstractDecoratedTextEditor) window.getActivePage().getActiveEditor()).getEditorInput());
然后设置内容,看起来效果不错

编辑器将加载以下行:

                IEditorInput input=new FileEditorInput(fstorage);

                String editorId= getEditorId(file);

                IWorkbenchPage page= fWindow.getActivePage();

                try {

                    if(page!=null)
                    {
                        IEditorPart part = page.openEditor(input, editorId );
                        page.activate(part);
                    }


                } catch (PartInitException e) {
                    log(e);
                }
如上所述,打开编辑器时没有错误,因为如果没有最大化,可以访问编辑器


Eclipse光子中是否有显示最大化编辑器所需的额外步骤?

透视图是否有编辑器区域?
WorkbenchPage#seteditorreavisible()
中的代码在
true
时不会创建编辑器区域。透视图有一个
页面。seteditorreavisible(false)当编辑器部分开始隐藏,但在透视图中没有处理编辑器的其他内容时,新版本中是否还需要其他内容?(这在过去是有效的)你在做什么来最大化编辑器?没有任何代码,只需按最大化按钮或双击编辑器标题栏,两者的结果相同
                IEditorInput input=new FileEditorInput(fstorage);

                String editorId= getEditorId(file);

                IWorkbenchPage page= fWindow.getActivePage();

                try {

                    if(page!=null)
                    {
                        IEditorPart part = page.openEditor(input, editorId );
                        page.activate(part);
                    }


                } catch (PartInitException e) {
                    log(e);
                }