Re: Problems accessing to QVTO operations [message #504350] |
Fri, 18 December 2009 13:11 |
Sven Efftinge Messages: 1823 Registered: July 2009 |
Senior Member |
|
|
Hi Marc,
since you're referring to GMF's modified version of Xpand.
It's best to ask at the GMF newsgroup (which I've CCed).
Cheers,
Sven
Marc schrieb:
> Hello again!
>
> First of all, I don't know if put this topic here or in thg GMF forum,
> because it affects to the GMF transformation using XPand templates and
> QVTO extensions...
>
> I'm having problems when access to the operations of a QVTO extension.
> My XPand file looks like that:
>
> «IMPORT 'http://www.eclipse.org/gmf/2009/GenModel'»
> «IMPORT 'http://www.eclipse.org/emf/2002/GenModel'»
>
> «EXTENSION gmf::EMFUtils»
>
> «AROUND getDiagramVisualID FOR gmfgen::GenDiagram-»
> «EXPAND xpt::Common::generatedMemberComment»
> public static void myFunction() {
> «getReferencingObjects(self)»
> }
> «ENDAROUND»
>
>
> The getReferencingObjects(EObject) is a function placed in a Class in
> the *gmf.codegen plugin, and is acessible because in the gmf plugin
> extensions is declared the following extension:
>
> <extension point="org.eclipse.m2m.qvt.oml.javaBlackboxUnits">
> <unit name="EMFUtils" namespace="gmf">
> <library class="org.eclipse.gmf.internal.codegen.util.EMFUtils">
> <metamodel nsURI="http://www.eclipse.org/emf/2002/Ecore"/>
> </library>
> </unit>
> </extension>
>
>
> So I think all is well configured to access to this funtion in this
> class. I had seen examples in UML2 project, that access to
> gmf::GenModelUtils extension with the same way I'm doing, and it doesn't
> work for me... I'm desperate :(
>
> Anybody know where I'm wrong???
>
> Thanks in advance!
> Marc
--
Need professional support for Xtext and EMF?
Go to: http://xtext.itemis.com
Twitter : @svenefftinge
Blog : blog.efftinge.de
|
|
|
Powered by
FUDForum. Page generated in 0.02953 seconds