Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » GEF5 with e4 RCP and Tycho(Trying to get a working example going with these three pieces)
GEF5 with e4 RCP and Tycho [message #1838027] Sat, 13 February 2021 20:42 Go to next message
Ken Keefe is currently offline Ken KeefeFriend
Messages: 40
Registered: April 2012
Member
I originally posted this in the gef-dev mailing list, but this is the appropriate place to discuss it. I'll recap the conversation so far:

I have a large commercial application that used to be Eclipse RCP 3.x with GEF 3.x. I've transitioned it to a pure e4 RCP application and I'm trying to make it work with the latest GEF 5. I have been struggling with JavaFX and GEF 5 for a while now. To try and work the problem, I set out to create a small working example that can help me and hopefully others understand how to configure an e4 application with GEF 5. I also have a subsequent goal of building the whole thing with a headless Tycho build.

I am currently stuck and I hope to get some help to make this proof of concept application work. You can check it out here: https://github.com/kjkeefe/e4gef5shapes

The README explains how to get it imported and running (although it is broken with a javafx problem). The README also shows the current sticking point.

Please let me know if you have any questions or ideas for how to improve this example. If you can help just get me past the current error, I can spend some more cycles on the next steps.

Thanks,
Ken



Reply from Alexander Nyßen

Hallo Kenneth,

please refer to the GEF forum for questions of this kind. It is the intended place. And please do not use the namespace „org.eclipse.gef" in any of your own examples. It is the official namespace used by the GEF project.

I took a quick look at your example and it seems you are not specifying the efxclipse.java-modules.dir for e(fx)clipse in your config. You need to have something like:

-Defxclipse.java-modules.dir=/Library/Java/Extensions/javafx-sdk-11.0.2/lib

You can use the following debug hook to see whether it's locating it in the place you specified.:

-Defxclipse.osgi.hook.debug=true

Best Regards
Alexander



Reply from Tom Schindl

No he is repackaging javafx himself - at a first glance those bundles are missing a require-bundle for org.eclipse.swt.

Rebundleing yourself (and you then don't need the OSGi hook) is possible but you then run FX on the classpath which is working but officially unsupported!

Tom



Re: GEF5 with e4 RCP and Tycho [message #1838028 is a reply to message #1838027] Sat, 13 February 2021 20:50 Go to previous messageGo to next message
Ken Keefe is currently offline Ken KeefeFriend
Messages: 40
Registered: April 2012
Member
I will work on changing the namespace away from org.eclipse.gef so there is no confusion.

I found that instruction on the GEF page about setting the system property that points to the efxclipse.java-modules.dir. The problem I have is that my application will be installed by users who may not have javafx installed and I'd prefer not to make that a prerequisite. I could bundle javafx in a feature as a root folder, but I won't know what path the application will be installed in, so I will need to have some sort of helper code to detect the path and overwrite the eclipse.ini file that sets the system property.

A cleaner solution seemed to me to be to rebundle the javafx libraries as Tom pointed out. However, that seems to be running into a problem as well. Tom, I am unsure of what you mean by running FX on the classpath.

Any advice is very welcome. I'll work on making the changes to the namespace.
Re: GEF5 with e4 RCP and Tycho [message #1838272 is a reply to message #1838027] Sat, 20 February 2021 04:01 Go to previous message
xueyao feng is currently offline xueyao fengFriend
Messages: 8
Registered: October 2020
Junior Member
i follow the procedure the gef and javafx setup post, so i can successfully debug and
run gef,javafx based eclipse plugin application,but when i export the plugin and install the plugin,i got errors from eclipse as shown in attachment below.
my question is ,what should i do to export the eclipse plugin successfully?
Previous Topic:How to set up e(fx)clipse development with JDK 1.8 and GEF 5 ?
Next Topic:Please ADD information about "GEF DOT End-User Tools" settings
Goto Forum:
  


Current Time: Mon Apr 19 12:35:30 GMT 2021

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

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

Back to the top