Skip to main content

Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse 4 » SceneBuilder integration(Integrating SceneBuilder with e4)
SceneBuilder integration [message #1774495] Mon, 16 October 2017 13:38
Hallvard Traetteberg is currently offline Hallvard TraettebergFriend
Messages: 672
Registered: July 2009
Location: Trondheim, Norway
Senior Member

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 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.


Hallvard Trætteberg
Previous Topic:Rendering a label or text field in a toolbar is incorrect in defining over fragment.e4xmi
Next Topic:How to close the workbench from an other bundle
Goto Forum:

Current Time: Sun Sep 20 18:37:51 GMT 2020

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

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

Back to the top