[Xpand] TypeProposalComputer.computeProposals() [message #508928] |
Wed, 20 January 2010 17:47 |
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
|
|
|
Powered by
FUDForum. Page generated in 0.02485 seconds