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: 86
Registered: June 2010
Location: Imola, Italy

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: 719
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:Open PartDescriptor on Application Startup
Next Topic:Dynamic toolbar contributions
Goto Forum:

Current Time: Mon Mar 19 18:54:28 GMT 2018

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

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