I would like to know if there is a pure Eclipse E4 way to open programmatically a java editor.
I am migrating my plug-in from Eclipse 3.x to Eclipse E4, and I need to transform the following Eclipse 3.x call into an Eclipse E4 call.
final IWorkbenchPage page = Activator.getActiveEditor().getSite().getPage();
IDE.openEditor(page, (IFile) myResource);
After search and analysis seem there is not an Eclipse E4 equivalent for this call. Is this possible?
This isn't possible in a pure e4 application.
The Java editor is a 3.x compatibility mode component and won't run in an e4 application. The editor depends on many org.eclipse.ui.xxx
plugins and things like IFile
none of which are available in a plain e4 RCP.