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

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?

Regards,

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: 786
Registered: January 2012
Senior Member

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

Brian.


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: Tue Nov 13 17:44:22 GMT 2018

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

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

Back to the top