Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » GEF » o.e.gef4.common standalone compilation problem(Unable to compile o.e.gef4.common package standalone.)
o.e.gef4.common standalone compilation problem [message #1706543] Thu, 27 August 2015 15:18 Go to next message
Jeff Higgins is currently offline Jeff HigginsFriend
Messages: 51
Registered: July 2009
Member
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 18:48 Go to previous message
Alexander Nyssen is currently offline Alexander NyssenFriend
Messages: 244
Registered: July 2009
Location: Lünen
Senior Member
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.
Previous Topic:Draw2D Add Figure at Location
Next Topic:ADD PaletteEntry Tool in GEF canvas editor
Goto Forum:
  


Current Time: Thu Apr 25 14:49:55 GMT 2024

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

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

Back to the top