I am looking for a way to open a Custom Graphiti Editor (e3.x) in my e4 application.
Dirk Fahland recommends in his tutorial to use an e3.x application and add an e4-product on top of it for this purpose, see dirksmetric.wordpress.com/2012/08/01/tutorial-eclipse-rcp-e4-with-3-x-views-like-project-explorer-properties-etc/.
I tried this and it turned out that many of the nice e4 features did not work anymore (for example defining the main menu or handlers in the Application.e4xmi).
Basically I am looking for an e4 equivalent for the following openFile-Handler:
@Override
public Object execute(ExecutionEvent event) throws ExecutionException {
URI uri = URI.createFileURI("N:/testdiagrams/test.filedi");
URIEditorInput editorInput = new URIEditorInput(uri);
IWorkbenchPage page = HandlerUtil.getActiveWorkbenchWindow(event).getActivePage();
page.openEditor(editorInput, "MyProject.graphitieditor");
return null;
}
What is the best way to achieve opening a file with my editor without giving up so much of the concept of defining the components in Application.e4xmi?