Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » org.eclipse.xtend.typesystem.uml2 as plugin-depency
org.eclipse.xtend.typesystem.uml2 as plugin-depency [message #732213] Tue, 04 October 2011 09:13 Go to next message
st oehm is currently offline st oehm
Messages: 79
Registered: October 2009
Member
hi to all
i want to run a XPandTemplate from a plugin. for that i have to put org.eclipse.xtend.typesystem.uml2 as a plugindepency in the pluginproject! but when i do this, the plugin does not work, so i have put org.eclipse.xtend.typesystem.uml2 as a jar-file in the pluginclasspath. that works fine. but i'am interested why the first solution doesn't work?
have somebody any idea?

greetings
stoehm
Re: org.eclipse.xtend.typesystem.uml2 as plugin-depency [message #732219 is a reply to message #732213] Tue, 04 October 2011 09:23 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian Dietrich
Messages: 6383
Registered: July 2009
Senior Member
Hi,

what do you mean with "does not work". any error messages or something like that?
or a reproducable example?

~Christian
Re: org.eclipse.xtend.typesystem.uml2 as plugin-depency [message #732226 is a reply to message #732213] Tue, 04 October 2011 09:31 Go to previous messageGo to next message
Ed Willink is currently offline Ed Willink
Messages: 4091
Registered: July 2009
Senior Member
Hi

If you are running on GIT/CVS then you may be having version
compatibility issues because as of Juno M2 UML2 has moved to UML 2.4
with a new major version and very narrow EMF version tolerance.

More generally, have you validated plugins in your launch configuration.

Regards

Ed Willink

On 04/10/2011 10:13, stoehm wrote:
> hi to all
> i want to run a XPandTemplate from a plugin. for that i have to put
> org.eclipse.xtend.typesystem.uml2 as a plugindepency in the
> pluginproject! but when i do this, the plugin does not work, so i have
> put org.eclipse.xtend.typesystem.uml2 as a jar-file in the
> pluginclasspath. that works fine. but i'am interested why the first
> solution doesn't work?
> have somebody any idea?
>
> greetings
> stoehm
Re: org.eclipse.xtend.typesystem.uml2 as plugin-depency [message #732231 is a reply to message #732226] Tue, 04 October 2011 09:47 Go to previous messageGo to next message
Karsten Thoms is currently offline Karsten Thoms
Messages: 354
Registered: July 2009
Location: Dortmund
Senior Member

When using UML2 4.0.0 this can be worked around by adding a URI map to the StandaloneSetup. The Juno M2 version already includes this mapping in the UML2 Setup class.

When running Xpand in a plugin it must be considered to use the ProjectIncludingResourceLoader. See an older article here: http://www.openarchitectureware.org/article.php/howto_cartridge_as_plugin

Regards,
~Karsten


Need professional support for Xtext, Xpand, EMF?
Go to: http://xtext.itemis.com
Twitter : @kthoms
Blog : www.karsten-thoms.de
Re: org.eclipse.xtend.typesystem.uml2 as plugin-depency [message #732234 is a reply to message #732231] Tue, 04 October 2011 09:50 Go to previous message
st oehm is currently offline st oehm
Messages: 79
Registered: October 2009
Member
hello
thanks for the replies, i will figure this out now
stoehm
Previous Topic:[acceleo] Good practice, implicit variable and constant queries
Next Topic:[acceleo] @main & invoking generated Java class
Goto Forum:
  


Current Time: Wed Oct 22 09:43:50 GMT 2014

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

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