I have a RCP application I have migrated from eclipse indigo to eclipse photon. When I open the editor as before no editor shows up.
However, the editor is indeed correctly loaded as I'm able to access it when minimized (see image), but if I try to maximize it, it disappears just showing an empty area (see image) where the editor was shown in eclipse indigo .
Editor is defined in an extension point
<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>
I'm opening/showing the editor part with the lines
PlatformUI.getWorkbench().getActiveWorkbenchWindow().getActivePage().setEditorAreaVisible(true);
then getting the contents of the document with
((AbstractDecoratedTextEditor) window.getActivePage().getActiveEditor()).getDocumentProvider().getDocument(((AbstractDecoratedTextEditor) window.getActivePage().getActiveEditor()).getEditorInput());
and then setting the contents, which seems to work fine.
The editor is loaded with the following lines:
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);
}
As stated above, there is no errors opening the editor, as it can be accessed if not maximized.
Are there any extra steps in Eclipse photon that are needed to show a maximized editor?