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: 673
Registered: July 2009
Location: Trondheim, Norway
Senior Member
Hi,

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.

Regards,

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: Tue Apr 16 23:50:43 GMT 2024

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

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

Back to the top