How to create an e4 RCP application using GEF4? [message #1728356] |
Sun, 03 April 2016 12:43 |
Steinar Bang Messages: 108 Registered: July 2009 |
Senior Member |
|
|
Platform: Intel i7,
Windows 7,
Java SDK 1.8.0_77,
eclipse Mars.1 Release (4.5.1)
Hi,
I tried following the instructions here:
http://wiki.eclipse.org/GEF/Adopter_Guide
The target platform step failed:
http://wiki.eclipse.org/GEF/Adopter_Guide#Define_and_Set_Target_Platform
I got "Unable to locate installable unit..." for everything in the
target platform.
Was this supposed to work for my version of eclipse? Do I need a new
different/version of eclipse Mars? Did I misinterpret the instructions?
Are the instructions out of date=
Here's what I did in more detail:
1. Install Java 7 or Java 8 JDK
Here I did nothing, since I already had Java 8 SDK installed
2. Download and start Eclipse IDE
All I did here was start the eclipse Mars I already had installed
3. Install e(fx)eclipse JavaFX-PDE-integration
I did Help->Install New Software...
Selected http://download.eclipse.org/releases/mars as the software
site, typed fx in the filter text editor, and selected and installed
"e(fx)eclipse - IDE" 2.1.0.201508240705
I restarted eclipse after the install
4. Specify Excution Environment for JavaSE-1.7 and/or JavaSE-1.8
I opened the java section in the eclipse Mars preferences dialog and
verified under installed JREs that I only had jre1.8.0_77
I verified in the Compiler section that I had 1.8 for everything
5. Define and Set Target Platform
Basically what I did here was to just create a target-platform that
ended up named gef4_target.target, and then I filled the file with
the contents of this file: http://git.eclipse.org/c/gef/org.eclipse.gef4.git/tree/org.eclipse.gef4.target/MARS.target
When I opened this file in the target file editor in eclipse Mars,
the editor said "Unable to locate installable unit..." for each
<unit> element in http://git.eclipse.org/c/gef/org.eclipse.gef4.git/tree/org.eclipse.gef4.target/MARS.target
And there it stopped for me.
Thanks!
- Steinar
|
|
|
Re: How to create an e4 RCP application using GEF4? [message #1728628 is a reply to message #1728356] |
Wed, 06 April 2016 05:06 |
|
The target file should actually be ok. Are you behind a proxy (and have to configure the network settings accordingly)?
If connection once failed (when resolving a target), Eclipse has to be restarted (it caches the information), or the sequence number in the target file has to be manually increased to enforce a 'fresh' reloading when opening the target file (with the target editor) again.
|
|
|
|
|
|
Re: How to create an e4 RCP application using GEF4? [message #1729514 is a reply to message #1728951] |
Fri, 15 April 2016 01:28 |
|
I have ported the MVC Logo example to a pure e4 application. It might be a good idea to add this to the GEF4 examples, and is probably a good example for e(fx)clipse as well. The source is at: https://github.com/ctgnz/gef4-rcp
There's a couple of minor issues that would need to be fixed up:
1. FXGeometricCurvePart is causing a problem by setting null dynamic anchor computation strategy. I presume this is a known problem that will get fixed, as there is a FIXME comment, and this is causing the normal Logo example to fail as well. I fixed it (temporarily) by using a new DynamicAnchor.OrthogonalProjectionStrategy(), but that's probably not correct.
2. I had to add the Orbit download site to the target definition, because the Google Guice Multibindings component is not part of the e(fx)clipse target platform. It's probably worth raising this with e(fx)clipse so they add it into their target definition, so it's easy to create a target definition using just e(fx)clipse and GEF4.
3. It might be an idea to have a separate GEF4 runtime feature, similar to the e(fx)clipse target platform feature. Strictly speaking, this should be two features, one for the core GEF4 runtime, and another for the UI extensions. This would allow a clean location to be used in the target definition. You can exclude certain plugins in the target definition, but Tycho does not support that, so it includes the *.ui, *.swt and *.jface bundles in the build anyway.
Colin Sharples
CTG Games Ltd
Wellington, New Zealand
|
|
|
Powered by
FUDForum. Page generated in 0.03788 seconds