Skip to main content

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 KeserFriend
Messages: 85
Registered: July 2009

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|»

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

«DEFINE testDef FOR |»

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?

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

Current Time: Fri Sep 30 16:24:52 GMT 2022

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

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

Back to the top