Skip to main content



      Home
Home » Modeling » M2T (model-to-text transformation) » [Xpand] TypeProposalComputer.computeProposals()
[Xpand] TypeProposalComputer.computeProposals() [message #508928] Wed, 20 January 2010 12:47
Eclipse UserFriend
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: Wed Jul 02 07:31:19 EDT 2025

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

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

Back to the top