o.e.gef4.common standalone compilation problem [message #1706543] |
Thu, 27 August 2015 11:18  |
Eclipse User |
|
|
|
Hi,
I'm attempting to become familiar with the GEF4 adapt and inject packages.
Toward that end, I hoped to create a standalone version of the o.e.gef4.common
packages to experiment with.
I create a standard Java project in Eclipse Mars, import
the source packages for o.e.gef4.common from my plugins directory
org.eclipse.gef4.common.source_0.1.0.201506081138.jar
put the following on my build path:
com.google.guava_15.0.0.v201403281430.jar
com.google.inject.multibindings_3.0.0.v201402270930.jar
com.google.inject_3.0.0.v201312141243.jar
javax.inject_1.0.0.v20091030.jar
build the project and receive the following compilation errors:
The method enter(capture#11-of ? extends IAdaptable)
in the type AdaptableScope<capture#11-of ? extends IAdaptable>
is not applicable for the arguments (IAdaptable)
AdaptableScopes.java
/org.eclipse.gef4.common/src/org/eclipse/gef4/common/inject
line 82 Java Problem
The method leave(capture#15-of ? extends IAdaptable)
in the type AdaptableScope<capture#15-of ? extends IAdaptable>
is not applicable for the arguments (IAdaptable)
AdaptableScopes.java
/org.eclipse.gef4.common/src/org/eclipse/gef4/common/inject
line 127 Java Problem
The method switchTo(capture#13-of ? extends IAdaptable)
in the type AdaptableScope<capture#13-of ? extends IAdaptable>
is not applicable for the arguments (IAdaptable)
AdaptableScopes.java
/org.eclipse.gef4.common/src/org/eclipse/gef4/common/inject
line 105 Java Problem
I'm unable to understand the error messages, and am unsure how to proceed.
Is it possible to compile o.e.gef4.common standalone, if so how do I proceed?
Thanks
JS Higgins
|
|
|
Re: o.e.gef4.common standalone compilation problem [message #1706573 is a reply to message #1706543] |
Thu, 27 August 2015 14:48  |
Eclipse User |
|
|
|
I don't quite understand why you need to build a "standalone" version and what that would actually be. The org.eclipse.gef4.common bundle does not rely on any OSGi services, so you could simply use the respective bundle-jar. We do that in the MVC Logo Web example (in a standalone situation without OSGi/Eclipse as well).
If you want to build it locally anyway (without the other GEF4 bundles, which could simply be done with Tycho/Maven), you will need to check it out in source (or simply import the source bundle). To satisfy dependencies, using the org.eclipse.gef4.target project is the easiest way to go. It contains a target definition you will have to resolve and set. You should then be able to deploy the bundle using the export wizard, or build it locally via an ant build file, which you can simply create via PDE (context menu), that can be used to produce a jar.
For these kind of concerns, https://wiki.eclipse.org/GEF/Contributor_Guide is usually the place where (most of) the required information should be given.
|
|
|
Powered by
FUDForum. Page generated in 0.07208 seconds