Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » Xpand IMPORT problem
Xpand IMPORT problem [message #527129] Wed, 14 April 2010 08:11 Go to next message
Dennis sui is currently offline Dennis suiFriend
Messages: 35
Registered: February 2010
Member
Hi,
it is the first time that i use XPand.

I tried it with the "requirement" example as in CVS.

My problem is if i keep this line in the xpt file:
«IMPORT 'http://www.eclipse.org/gmf/2009/GenModel'»


I get this error message:
mismatched input ''http://www.eclipse.org/gmf/2009/GenModel''
   expecting Identifier


Now if i only use the IMPORTs
«IMPORT tooltip»
«IMPORT gmfgen»
«IMPORT ecore»
«IMPORT genmodel»


I get the error message
Couldn't find property 'ecorePackage' for type 'genmodel::GenPackage' 


for
subject.genPackage.ecorePackage.name


As I said, I'm new to XPand and i have no idea what I'm doing wrong.
The workflow runs correctly through in spite of the error messages in the editor.

Re: Xpand IMPORT problem [message #527136 is a reply to message #527129] Wed, 14 April 2010 08:36 Go to previous messageGo to next message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
hello, your problem might be that gmf xpand is a fork and works different from m2t xpand - so if you want to edit gmf templates you should use gmf xpand to do this.

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Re: Xpand IMPORT problem [message #527392 is a reply to message #527136] Thu, 15 April 2010 07:05 Go to previous messageGo to next message
Dennis sui is currently offline Dennis suiFriend
Messages: 35
Registered: February 2010
Member
Unfortunately, this is not the problem.

I created a new GMF XPand Template and opened it with GMF Xpand Editor.
Both editors have the same name. The one (guess that's the GMF XPand editor) gives me error messages as described, the other did not work.
He gives me exceptions when I save.
Re: Xpand IMPORT problem [message #527401 is a reply to message #527392] Thu, 15 April 2010 07:25 Go to previous message
Christian Dietrich is currently offline Christian DietrichFriend
Messages: 14665
Registered: July 2009
Senior Member
Right so when you use GMF Xpand (to customize GMF code generation) you should post your problem in the GMF forum.

Twitter : @chrdietrich
Blog : https://www.dietrich-it.de
Previous Topic:[XTEND] Iteration over a List
Next Topic:[Xpand] Change in behavior of "-" sign to skip whitespaces?
Goto Forum:
  


Current Time: Tue Apr 23 13:39:02 GMT 2024

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

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

Back to the top