Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » GMF (Graphical Modeling Framework) » Re: Problems accessing to QVTO operations
Re: Problems accessing to QVTO operations [message #504350] Fri, 18 December 2009 13:11
Sven Efftinge is currently offline Sven EfftingeFriend
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
Previous Topic:How to generate uml2 diagram within a gmf project programmatically ?
Next Topic:draw diagram elements that share the same characteristics
Goto Forum:
  


Current Time: Fri Apr 26 06:50:17 GMT 2024

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

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

Back to the top