|SceneBuilder integration [message #1774495]
||Mon, 16 October 2017 13:38
| Hallvard Traetteberg
Registered: July 2009
Location: Trondheim, Norway
I have given a master student the task of integrating SceneBuilder (a GUI builder for JavaFX) with Eclipse. So far he has made an e3 (i.e. old style) EditorPart of the main content pane and a ViewPart of the Inspector Pane, with support for opening and saving FXML files and undo/redo also when properties are changed from the Inspector view.
Now he's considering whether and how to create a pure e4 editor. It should be possible, since there are of course no e3 dependencies in the original SceneBuilder code. Tom's work on a pure JavaFX IDE might benefit from this, and since SceneBuilder already is pure JavaFX, a JavaFX renderer should be trivial (now he wraps it in a FxCanvas).
However, he finds it a bit difficult since there is no Editor(Part) concept with support for EditorInput. In Tom's example at https://eclipse.googlesource.com/e4/org.eclipse.e4.ui/+/integration/examples?autodive=0%2F%2F%2F%2F the application model is extended with an EditorPartDescriptor that includes the contributionURI (of the editor) and file extension and content types that the editor supports. But he hasn't found how this relates to opening when double-clicking the file and how the file is made available to the editor. As opposed to a pure e4 view, this seems a lot more complicated so he wonders whether he's on the right track.
All suggestions and pointers are welcome, also comments to the relevance of the project. The goal is to contribute something useful to the community, so any input that improves the relevance is appreciated.
Powered by FUDForum
. Page generated in 0.02161 seconds