Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » Eclipse E4 open Java Editor Programmatically (Is it possible to open a Java Editor programmatically with pure Eclipse 4 code? )
Eclipse E4 open Java Editor Programmatically [message #1752526] Tue, 24 January 2017 17:50 Go to next message
Patrik Suzzi is currently offline Patrik SuzziFriend
Messages: 91
Registered: June 2010
Location: Urdorf, Switzerland

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?


Patrik Suzzi
Re: Eclipse E4 open Java Editor Programmatically [message #1752600 is a reply to message #1752526] Wed, 25 January 2017 14:49 Go to previous message
Brian de Alwis is currently offline Brian de AlwisFriend
Messages: 876
Registered: January 2012
Senior Member

Pure E4 doesn't know about editors. That's a concept from the Eclipse Workbench (aka Eclipse 3).


Eclipse Platform committer. Ask me about Eclipse support, training, and consulting.
Previous Topic:Slow reaction of Eclipse Editors on a Windows VM
Next Topic:RCP 4.x application examples
Goto Forum:

Current Time: Mon Sep 28 22:34:14 GMT 2020

Powered by FUDForum. Page generated in 0.01957 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top