Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » M2T (model-to-text transformation) » [Xpand] TypeProposalComputer.computeProposals()
[Xpand] TypeProposalComputer.computeProposals() [message #508928] Wed, 20 January 2010 17:47
Ilyas Keser is currently offline Ilyas Keser
Messages: 85
Registered: July 2009
Member
Hi,

if your metamodel types (MyType extends org.eclipse.xtend.typesystem.AbstractTypeImpl) use qualified names and you import a long namespace in a Xpand template (e.g. «IMPORT de::my::namespace::sometypes» the proposals for the following example are not shown (at the position of "|"):

«DEFINE testDef FOR My|»
....
«ENDDEFINE»

But if you try it without a prefix (at the position of "|") they are shown correctly:

«DEFINE testDef FOR |»
....
«ENDDEFINE»

The method TypeProposalComputer.computeProposals() uses TypeNameUtil.getPackage(insertString) which only returns the first segment of the package (in our example only "de" instead of "de::my::namespace::sometypes"). Can this be reason for the explained behaviour of the Xpand editor?

Thanks
ILyas
Previous Topic:[Acceleo] Acceleo profiler hide other profiler
Next Topic:[Acceleo] Exception in template query
Goto Forum:
  


Current Time: Thu Oct 02 16:31:36 GMT 2014

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

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