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: 2
Registered: February 2018
Junior 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
Eclipse UserFriend
Pure E4 doesn't know about editors. That's a concept from the Eclipse Workbench (aka Eclipse 3).

Brian.
Previous Topic:Slow reaction of Eclipse Editors on a Windows VM
Next Topic:RCP 4.x application examples
Goto Forum:
  


Current Time: Thu Apr 25 22:20:12 GMT 2024

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

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

Back to the top