Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » M2M (model-to-model transformation) » [QVTo] Referencing types of super-model (model inheritance)
[QVTo] Referencing types of super-model (model inheritance) [message #545505] Thu, 08 July 2010 06:19 Go to next message
Urs Breu is currently offline Urs BreuFriend
Messages: 12
Registered: October 2009
Location: Switzerland
Junior Member
Hi All

I have an EMF model that is an extension of GMF's notation model.
I want to create a transformation from my model to XHTML.
My transformation starts as follows (view inherits from http://www.eclipse.org/gmf/runtime/1.0.2/notation):

modeltype VIEW uses 'http://my.company/1.0.0/view';
modeltype XHTML uses 'http://www.w3.org/1999/xhtml';

transformation View2Xhtml(in View : VIEW, out Xhtml : XHTML);

main() {
var model := View.rootObjects() ...

I can reference types declared directly in my model, but I can't reference types declared in GMF notation or EMF ecore. How can I achieve this?
Re: [QVTo] Referencing types of super-model (model inheritance) [message #546979 is a reply to message #545505] Wed, 14 July 2010 19:38 Go to previous messageGo to next message
Alex Mising name is currently offline Alex Mising nameFriend
Messages: 51
Registered: August 2009
Member
Have you tried adding
modeltype GMFVIEW uses 'http://www.eclipse.org/gmf/runtime/1.0.2/notation';

Alex
Re: [QVTo] Referencing types of super-model (model inheritance) [message #547178 is a reply to message #546979] Thu, 15 July 2010 19:47 Go to previous message
Urs Breu is currently offline Urs BreuFriend
Messages: 12
Registered: October 2009
Location: Switzerland
Junior Member
Thanks Alex!

That does the job!
Previous Topic:[ATL] What kind of ATL2006compiler error is this?
Next Topic:[ATL]Several relations between classes
Goto Forum:
  


Current Time: Mon Nov 04 13:27:34 GMT 2024

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

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

Back to the top