Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » How to create an e4 RCP application using GEF4?
How to create an e4 RCP application using GEF4? [message #1728356] Sun, 03 April 2016 12:43 Go to next message
Steinar Bang is currently offline Steinar BangFriend
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 Go to previous messageGo to next message
Alexander Nyssen is currently offline Alexander NyssenFriend
Messages: 235
Registered: July 2009
Location: Lünen
Senior Member
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 #1728738 is a reply to message #1728628] Wed, 06 April 2016 19:11 Go to previous messageGo to next message
Steinar Bang is currently offline Steinar BangFriend
Messages: 108
Registered: July 2009
Senior Member
>>>>> Alexander Nyßen <forums-noreply@xxxxxxxx>:

> The target file should actually be ok. Are you behind a proxy (and
> have to configure the network settings accordingly)?

Nope, no proxy.

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

Tried a restart. Same behaviour: "Unable to locate installable unit..."
on everything.
Re: How to create an e4 RCP application using GEF4? [message #1728741 is a reply to message #1728738] Wed, 06 April 2016 20:12 Go to previous messageGo to next message
Alexander Nyssen is currently offline Alexander NyssenFriend
Messages: 235
Registered: July 2009
Location: Lünen
Senior Member
Please try to manually update the sequence number in the target file, using the text editor, then reopen it with the target editor.
Re: How to create an e4 RCP application using GEF4? [message #1728951 is a reply to message #1728741] Fri, 08 April 2016 15:41 Go to previous messageGo to next message
Steinar Bang is currently offline Steinar BangFriend
Messages: 108
Registered: July 2009
Senior Member
>>>>> Alexander Nyßen <forums-noreply@xxxxxxxx>:

> Please try to manually update the sequence number in the target file,
> using the text editor, then reopen it with the target editor.

The sequenceNumber was 29, I bumped to 30 and it reloaded without a hitch:
<?pde version="3.8"?><target name="MARS" sequenceNumber="30">


Thanks!
Re: How to create an e4 RCP application using GEF4? [message #1729514 is a reply to message #1728951] Fri, 15 April 2016 01:28 Go to previous message
Colin Sharples is currently offline Colin SharplesFriend
Messages: 90
Registered: July 2009
Location: Wellington, New Zealand
Member

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
Previous Topic:Javadoc failure when Running a headless build locally
Next Topic:[Zest] How to add an DoubleClickListener to the ZestContentViewer?
Goto Forum:
  


Current Time: Sun Nov 18 17:07:19 GMT 2018

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

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

Back to the top